:root
{
	--primary-color: #1abc9c;
	--secondary-color: #f39c12;
	--bg-color: #ffffff;
	--font-color: #333333;
	--grid-columns: 3;
}

*
{
	box-sizing: border-box;
}

html, body
{
	margin: 0;
	padding: 0;
	/* font-family: 'Segoe UI', sans-serif; */
	font-family: Arial, sans-serif;
	background: var(--font-color);
	color: #fff;
	direction: rtl;
	height: 100%;
	overflow-x: hidden;
}

img
{
	pointer-events: none;
}

hr
{
	text-align: center;
	align-items: center;
	margin: 2rem 0 2rem 0;
}

h2
{
	margin: 0 1.5rem;
	color: #333;
}

h3
{
	margin: 0 1.5rem;
	color: #333;
}

/* img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
} */
.content-image-wrapper
{
	position: relative;
	width: 100%;
	max-width: 100%;
	text-align: center;
}

.content-image-wrapper img.protected-image
{
	max-width: 100%;
	height: auto;
	user-select: none;
	pointer-events: none;
}

.image-overlay
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 2;
}

.favorite-btn-wrapper
{
	margin-top: 7px;
}

.favorite-btn-wrapper.align-center
{
	text-align: center;
}

.favorite-btn-wrapper.align-left
{
	text-align: left;
}

.favorite-btn-wrapper.align-right
{
	text-align: right;
}

.favorite-butn
{
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: none;
	background-color: #333;
	color: white;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	font-size: 0.9em;
	transition: background-color 0.3s;
}

.favorite-butn:hover
{
	background-color: #e60000;
}

.tab-container
{
	max-width: 100%;
	padding: 1rem;
	box-sizing: border-box;
}

.tabs
{
	display: flex;
	border-bottom: 2px solid #ccc;
	margin-bottom: 1rem;
}

.tab
{
	flex: 1;
	text-align: center;
	padding: 0.75rem;
	cursor: pointer;
	border: none;
	background-color: #f9f9f9;
	border-bottom: 2px solid transparent;
	transition: background-color 0.3s ease;
	font-weight: bold;
}

.tab.active
{
	background-color: #fff;
	border-bottom: 2px solid #333;
}

.tab-content
{
	display: block;
}

.tab-content.hidden
{
	display: none;
}

.item-box
{
	background: #fff;
	border: 1px solid #ccc;
	padding: 1rem;
	margin-bottom: 0.75rem;
	border-radius: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.item-link
{
	text-decoration: none;
	color: #222;
	font-weight: bold;
}

.remove-btn
{
	background-color: #ff4c4c;
	color: white;
	border: none;
	border-radius: 3px;
	padding: 0.4rem 0.75rem;
	cursor: pointer;
	transition: background 0.2s;
}

.remove-btn:hover
{
	background-color: #cc0000;
}

.next-title-rtl
{
	text-align:right;
}

.next-title-ltr
{
	text-align:left;
}

.layout-root
{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.page-wrapper
{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* .page-container
{
	width: 100%;
	margin: 0 auto;
	padding: 0;
} */

.page-container
{
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1rem;
	background-color: #fff;
	flex: 1;
}

.portal-banner
{
	background-size: cover;
	background-position: center;
	height: 382px;
	margin-bottom: 1rem;
}

.footer-aligned
{
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 0;
	background: transparent;
}

.portal-footer
{
	width: 100%;
	max-width: 960px;
	background: transparent;
	text-align: center;
	align-items: center;
	color: #333;
	padding: 1.5rem;
	font-weight: bold;
	text-decoration: none;
}

.portal-footer a
{
	text-decoration: none;
	color: #333;
}

#portal-header
{
	padding: 1rem;
	background: var(--primary-color, #f9f9f9);
	border-bottom: 1px solid #ccc;
}

.portal-header img
{
	width: 96px;
}

.portal-header h1
{
	font-size: 1.4rem;
	margin: 0;
}

.header-inner
{
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#portal-header.rtl .header-inner
{
	flex-direction: row-reverse;
}

.logo img
{
	width: 96px;
}

.header-right
{
	display: flex;
	align-items: center;
	gap: 1rem;
	text-align: right;
}

#portal-header.ltr .header-right
{
	text-align: left;
}

.portal-title
{
	font-size: 1.2rem;
	font-weight: bold;
	white-space: nowrap;
}

.header-title
{
	background: transparent;
	border: none;
	color: #fff;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
	font-size: 1.2rem;
	font-weight: bold;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.header-actions
{
	display: flex;
	gap: 0.5rem;
}

.header-actions button
{
	font-size: 0.85rem;
	padding: 0.4rem 0.7rem;
}

.header-link,
.header-button
{
	background: transparent;
	border: none;
	color: #fff;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
	font-size: 1rem;
	font-weight: bold;
	transition: background 0.2s ease;
}

.header-link:hover,
.header-button:hover
{
	background: #e0e0e0;
	cursor: pointer;
}

.modal-backdrop
{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
}

.modal-confirm
{
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
}

.modal-box
{
	background: white;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	max-width: 300px;
	text-align: center;
}

.modal-confirm-box
{
	background: white;
	margin: 15% auto;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	max-width: 300px;
	width: 90%;
	text-align: center;
}

.modal-actions
{
	margin-top: 1rem;
	display: flex;
	justify-content: space-around;
}

.modal-confirm-actions
{
	margin-top: 1.5rem;
	text-align: conter;
	justify-content: space-around;
	gap: 0.5rem;
}

/*
.modal-actions .confirm-link,
.modal-actions button
{
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	border: none;
	border-radius: 6px;
	text-decoration: none;
}

 .modal-actions .confirm-link
{
	background-color: #e74c3c;
	color: white;
}

.modal-actions button
{
	background-color: #ccc;
	color: #333;
} */

.btn-confirm, .btn-cancel
{
	font-size: 1.0rem;
	padding: 0.5rem 1rem;
	margin-left: 0.5rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	
}

.btn-confirm
{
	background: #c0392b;
	color: white;
}

.btn-cancel
{
	background: #bdc3c7;
}

.bottom-nav i
{
	font-size: 1.4rem;
	color: #333;
	transition: color 0.2s ease;
}

.bottom-nav a:hover i,
.bottom-nav button:hover i
{
	color: #007BFF;
}

.text-link
{
	font-size: 0.9rem;
	color: #fff;
	margin-left: 1rem;
	text-decoration: none;
	position: relative;
	transition: color 0.2s ease;
}

.text-link:hover
{
	color: #007BFF;
}

.text-link.danger
{
	color: #c0392b;
}

.text-link.danger:hover
{
	color: #e74c3c;
}

.bottom-nav
{
	display: none;
}

.portal-content
{
	flex: 1;
	padding: 0 1rem;
	overflow: hidden;
}

.content-grid
{
	display: grid;
	grid-template-columns: repeat(var(--grid-columns), 1fr);
	gap: 1rem;
}

.item-grid
{
	display: grid;
	gap: 1rem;
	grid-gap: 1rem;
	margin-top: 1rem;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	overflow: hidden;
}

.item-grid[data-cols="1"] { grid-template-columns: repeat(1, 1fr); }
.item-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.item-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.item-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.item-grid[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }

.item-tile
{
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 6px;
	overflow: hidden;
	box-sizing: border-box;
	background-color: var(--secondary-color);
	color: #333;
	text-align: center;
	/* text-align: start;
	unicode-bidi: plaintext; */
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	/* transition: transform 0.2s ease; */
	position: relative;
}

.item-tile a
{
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.item-tile:hover
{
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transform: translateY(-4px);
}

.thumb-wrap
{
	width: 100%;
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
	overflow: hidden;
}

.thumb-wrap img
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.item-title
{
	padding: 0.2rem 0.2rem 2rem 0.2rem;
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 2em;
	line-height: 2em;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
}

.item-sub-title
{
	text-align: start;
	unicode-bidi: plaintext;
	width:100%;
}

.item-extra
{
	padding: 0.1rem 0.1rem 0.8rem 0.1rem;
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}

.video-wrapper
{
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}


.video-container
{
	width: 100%;
	border-radius: 4px;
	margin: 0 auto;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

video
{
	width: 100%;
	height: 100%;
	border-radius: 4px;
}

.video-controls
{
	right: 0;
	left: 0;
	padding: 10px;
	position: absolute;
	bottom: 0;
	transition: all 0.2s ease;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.video-controls.hide
{
	opacity: 0;
	pointer-events: none;
}

.video-progress
{
	position: relative;
	height: 8.4px;
	margin-bottom: 10px;
}

progress
{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 2px;
	width: 100%;
	height: 8.4px;
	pointer-events: none;
	position: absolute;
	top: 0;
}

progress::-webkit-progress-bar
{
	background-color: #474545;
	border-radius: 2px;
}

progress::-webkit-progress-value
{
	background: var(--youtube-red);
	border-radius: 2px;
}

progress::-moz-progress-bar
{
	border: 1px solid var(--youtube-red);
	background: var(--youtube-red);
}

.seek
{
	position: absolute;
	top: 0;
	width: 100%;
	cursor: pointer;
	margin: 0;
}

.seek:hover+.seek-tooltip
{
	display: block;
}

.seek-tooltip
{
	display: none;
	position: absolute;
	top: -50px;
	margin-left: -20px;
	font-size: 12px;
	padding: 3px;
	content: attr(data-title);
	font-weight: bold;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.6);
}

.bottom-controls
{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.left-controls
{
	display: flex;
	align-items: center;
	color: #fff;
}

.volume-controls
{
	display: flex;
	align-items: center;
	margin-right: 10px;
	direction: ltr
}

.volume-controls input
{
	width: 100px;
	opacity: 1;
	transition: all 0.4s ease;
}

.volume-controls:hover input, .volume-controls input:focus
{
	width: 100px;
	opacity: 1;
}

.right-controls
{
	color: #fff;
}

.right-controls button
{
	cursor: pointer;
	position: relative;
	margin-right: 7px;
	font-size: 12px;
	padding: 3px;
	border: none;
	outline: none;
	background-color: transparent;
}

.right-controls button *
{
	pointer-events: none;
}

.right-controls button::before
{
	content: attr(data-title);
	position: absolute;
	display: none;
	right: 0;
	top: -50px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-weight: bold;
	padding: 4px 6px;
	word-break: keep-all;
	white-space: pre;
}

.right-controls button:hover::before
{
	display: inline-block;
}

.fullscreen-button
{
	margin-right: 0;
}

.pip-button svg
{
	width: 26px;
	height: 26px;
}

.playback-animation
{
	pointer-events: none;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -40px;
	margin-top: -40px;
	width: 80px;
	height: 80px;
	border-radius: 80px;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
}

input[type=range]
{
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 8.4px;
	background: transparent;
	cursor: pointer;
}

input[type=range]:focus
{
	outline: none;
}

input[type=range]::-webkit-slider-runnable-track
{
	width: 100%;
	cursor: pointer;
	border-radius: 1.3px;
	-webkit-appearance: none;
	transition: all 0.4s ease;
}

input[type=range]::-webkit-slider-thumb
{
	height: 16px;
	width: 16px;
	border-radius: 16px;
	background: var(--youtube-red);
	cursor: pointer;
	-webkit-appearance: none;
	margin-left: -1px;
}

input[type=range]:focus::-webkit-slider-runnable-track
{
	background: transparent;
}

input[type=range].volume
{
	height: 5px;
	background-color: #fff;
}

input[type=range].volume::-webkit-slider-runnable-track
{
	background-color: transparent;
}

input[type=range].volume::-webkit-slider-thumb
{
	margin-left: 0;
	height: 14px;
	width: 14px;
	background: #fff;
}

input[type=range]::-moz-range-track
{
	width: 100%;
	height: 8.4px;
	cursor: pointer;
	border: 1px solid transparent;
	background: transparent;
	border-radius: 1.3px;
}

input[type=range]::-moz-range-thumb
{
	height: 14px;
	width: 14px;
	border-radius: 50px;
	border: 1px solid var(--youtube-red);
	background: var(--youtube-red);
	cursor: pointer;
	margin-top: 5px;
}

input[type=range]:focus::-moz-range-track
{
	outline: none;
}

input[type=range].volume::-moz-range-thumb
{
	border: 1px solid #fff;
	background: #fff;
}

.hidden
{
  display: none;
}

svg
{
	width: 28px;
	height: 28px;
	fill: #fff;
	stroke: #fff;
	cursor: pointer;
}

.channel-banner
{
    background-size: cover;
	background-position: center;
	height: 382px;
	margin-bottom: 1rem;
	border-radius: 6px;
}

.channel-header h1
{
    font-size: 1.8rem;
    color: #333;
    margin-top: 2rem;
    text-align: center;
}

.channel-paragraph-ltr 
{
    background-color: #fafafa;
	border-radius: 6px;
	padding: 0.5rem;
}

.channel-paragraph-rtl 
{
    background-color: #fafafa;
	border-radius: 6px;
	padding: 0.5rem;
}

.channel-paragraph-ltr h1
{
    font-size: 1.8rem;
    color: #333;
    margin: 1rem 2rem 1rem 2rem;
    text-align: left;
}

.channel-paragraph-rtl h1
{
    font-size: 1.8rem;
    color: #333;
    margin: 1rem 2rem 1rem 2rem;
    text-align: right;
}

.channel-paragraph-ltr p
{
    font-size: 1rem;
    color: #333;
    margin: 1rem 2rem;
    text-align: left;
}

.channel-paragraph-rtl p
{
    font-size: 1rem;
    color: #333;
    margin: 1rem 2rem;
    text-align: right;
}

.badge
{
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #333;
	color: white;
	padding: 2px 6px;
	font-size: 0.9rem;
	font-weight: bold;
	border-radius: 4px;
	z-index: 2;
	pointer-events: none;
	text-transform: uppercase;
}

.bottom_badge
{
	position: absolute;
	bottom: 10px;
	left: 10px;
	color: red;
	padding: 2px;
	font-size: 1.4rem;
	font-weight: bold;
	border-radius: 4px;
	z-index: 2;
	pointer-events: none;
	text-transform: uppercase;
}

.count_badge
{
	position: absolute;
	bottom: 14%;
	left: 10px;
	background-color: #fafafa;
	color: #333;
	padding: 4px 16px 4px 16px;
	font-size: 1.4rem;
	font-weight: bold;
	border-radius: 4px;
	z-index: 3;
	pointer-events: none;
	text-transform: uppercase;
}

.badge.viewed
{
	background-color: #888;
}

.favorite
{
	font-variation-settings:'FILL' 1,'wght' 400,  'GRAD' 0,  'opsz' 24
}

.badge.new
{
	background-color: #e74c3c;
}

.badge.type
{
	top: 6px;
	right: 6px;
	left: auto;
	background-color: #007bff;
}

.error
{
	background-color: red;
	color: black;
}

.empty
{
	background-color: red;
	color: black;
}

.item_view_header a
{
	color: #333;
	text-decoration: none;
	font-size: 0.9rem;
}

.item_view_header h1
{
	margin: 0;
	font-size: 1.2rem;
	text-align: center;
	flex: 1;
}

.item_view_main.item-view
{
	padding: 15px;
	text-align: center;
}

/*.item_view_main.item-view video,*/
.item_view_main.item-view img,
.item_view_main.item-view audio
{
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.item_view_main.item-view a
{
	display: inline-block;
	background: <?= $portal['theme']['headercolor'] ?>;
	color: <?= $portal['theme']['foreground'] ?>;
	padding: 10px 20px;
	margin-top: 20px;
	border-radius: 6px;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.item_view_main.item-view p {
	font-size: 1rem;
}

.item-actions {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.action-btn {
	background: <?= $portal['theme']['headercolor'] ?>;
	color: <?= $portal['theme']['foreground'] ?>;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.95rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	text-decoration: none;
	transition: background 0.3s ease;
}

.action-btn:hover {
	background: #444;
}

/* .item img
{
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
} */

/* .item p
{
	margin: 0.5rem 0;
	font-size: 0.95rem;
}

.item button
{
	margin: 0.25rem 0.25rem 0;
	padding: 0.5rem;
	font-size: 0.9rem;
	width: 90%;
	border: none;
	border-radius: 8px;
	background: var(--primary-color);
	color: white;
	cursor: pointer;
} */

.item button[disabled]
{
	background: #ccc;
	cursor: not-allowed;
}

.view-count-badge
{
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	padding: 3px 6px;
	background: #ddd;
	color: #333;
	border-radius: 10px;
}

.view-count-badge.high
{
	background: #e74c3c;
	color: white;
}

.viewed-badge
{
	display: block;
	font-size: 0.75rem;
	color: #999;
	margin-top: 0.3rem;
}

.recently-viewed-section
{
	margin-top: 2rem;
}

.recently-viewed-section h3
{
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.tooltip
{
	position: absolute;
	background: rgba(0,0,0,0.85);
	color: white;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 0.85rem;
	z-index: 100;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.optout-container
{
	max-width: 600px;
	margin: 80px auto;
	padding: 2rem;
	background: #ffffff10;
	border-radius: 12px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
	text-align: center;
	color: #fff;
	backdrop-filter: blur(12px);
}

.optout-icon
{
	margin-bottom: 1rem;
}

.optout-title
{
	font-size: 1.8rem;
	color: #ff4d4f;
	margin-bottom: 1rem;
	font-weight: bold;
}

.optout-message
{
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	padding: 0.75rem;
	border-radius: 6px;
}

.optout-message.success
{
	background: rgba(25, 135, 84, 0.15);
	color: #49d88f;
}

.optout-message.error
{
	background: rgba(220, 53, 69, 0.15);
	color: #f59ca2;
}

.optout-message.warning
{
	background: rgba(255, 165, 0, 0.15);
	color: #ff9900;
}

.optout-back-button
{
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background: #0d6efd;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.3s ease;
}

.optout-back-button:hover
{
	background: #0b5ed7;
}

.optout-redirect
{
	font-size: 1rem;
	color: #ccc;
	margin-top: 1rem;
}

.modal-content
{
	background: #fff;
	padding: 2rem;
	max-width: 400px;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.channel-title
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.item-view-container
{
	width: 100%;
	background: #fff;
}

.item-view-content
{
	margin-bottom: 0.1rem;
	text-align: center;
}

/* .item-view-content video, 
.item-view-content img,
.item-view-content iframe
{
	width: 100%;
	max-height: 400px;
	border-radius: 6px;
}
*/
.content-view-title-rtl
{
	font-size: 24px;
	margin-bottom: 16px;
	text-align: right;
	color: #333;
}

.content-view-sub-title
{
	text-align: start;
	unicode-bidi: plaintext;
	width:100%;
}

.content-view-title-center
{
	font-size: 24px;
	margin-bottom: 16px;
	text-align: center;
	color: #333;
}

.content-view-title-ltr
{
	font-size: 24px;
	margin-bottom: 16px;
	text-align: left;
	color: #333;
}

.content-favorite-button
{
	background-color: #333;
	border-radius: 4px;
	border-style: none;
	box-sizing: border-box;
	color: #FFFFFF;
	cursor: pointer;
	display: inline-block;
	font-size: 18px;
	font-weight: 500;
	height: 36px;
	line-height: 18px;
	list-style: none;
	margin: 0;
	outline: none;
	padding: 8px 16px;
	position: relative;
	text-align: center;
	text-decoration: none;
	transition: color 100ms;
	vertical-align: baseline;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
}

.content-favorite-button:hover,
.content-favorite-button:focus
{
	background-color: #333;
}

.content-favorite-button-mobile
{
	justify-content: center;
	gap: 10px;
	background-color: #333;
	border-radius: 0.7rem;
	border-style: none;
	box-sizing: border-box;
	color: #FFFFFF;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.3rem;
	font-weight: 500;
	height: 36px;
	line-height: 18px;
	list-style: none;
	margin: 0;
	outline: none;
	padding: 1rem 5rem;
	position: relative;
	text-align: center;
	text-decoration: none;
	transition: color 100ms;
	vertical-align: baseline;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	align-items: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.content-favorite-button-mobile:hover,
.content-favorite-button-mobile:focus
{
	background-color: #333;
}

.content-action-area
{
	display: flex;
	justify-content: space-between;
    align-items: center;
	padding: 0.5rem 1rem 0 1rem;
}

.content-action-area-video-desktop
{
	display: flex;
	justify-content: space-between;
    align-items: center;
	padding: 1rem 1.5rem 0;
}

.content-action-area-video-mobile
{
	display: none;
	justify-content: space-between;
    align-items: center;
	padding: 0.5rem 1rem 0 1rem;
}

.content-action-area-video-mobile .btn-add
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	background-color: #FF6347;
	color: white;
	padding: 1rem;
	border-radius: 0.7rem;
	font-size: 1.1rem;
	font-weight: 500;
	height: 2.5rem;
	width: 2.5rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
}

.content-action-area-video-mobile .btn-add:hover
{
	background-color: #248f40;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.content-action-area-video-mobile .btn-remove
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10;
	background-color: #c71e23;
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	height: 2.1rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
}

.content-action-area-video-mobile .btn-remove:hover
{
	background-color: #b11b20;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.content-action-area-video-mobile .btn-add .material-symbols-outlined,
.content-action-area-video-mobile .btn-remove .material-symbols-outlined
{
	font-size: 1.4rem;
}

/* .item-view-actions
{
	display: flex;
	justify-content: center;
	gap: 10px;
}

.item-view-actions button,
.item-view-actions a
{
	padding: 10px 16px;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	background: #f1f1f1;
	border: 1px solid #ccc;
	border-radius: 4px;
} */

.apk-device-notice
{
	text-align: center;
	font-size: 1.1rem;
}

.notice-text
{
	color: #cc0000;
	padding: 1rem;
	font-weight: 500;
}

.content-preview-wrapper
{
	text-align: center;
	margin: 1rem 0;
}

.content-preview-img
{
	max-width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.content-preview-img,
.content-preview-wrapper,
img
{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

img::selection
{
	background: none;
}

/* .favorite-button-wrapper
{
	text-align: center;
	margin: 2rem 0;
}

.favorite-button-wrapper .fbtn
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #007bff;
	color: white;
	padding: 1rem 3rem;
	border-radius: 0.7rem;
	font-size: 1.3rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.favorite-button-wrapper .fbtn:hover
{
	background-color: #0056b3;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.favorite-button-wrapper .fbtn .material-symbols-outlined
{
	margin-inline-start: 0.5rem;
	font-size: 1.5rem;
}
 */

.content-preview-wrapper
{
	margin: 2rem auto;
	padding: 1rem;
	background-color: #f9f9f9;
	border-radius: 10px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.text-title
{
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: #444;
}

.text-preview pre
{
	text-align: start;
	white-space: pre-wrap;
	word-wrap: break-word;
	font-size: 1.2rem;
	line-height: 1.6;
	color: #333;
	padding: 2rem;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow-x: auto;
	max-height: 80vh;
}

.text-preview
{
	position: relative;
}

/* .text-preview::after
{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: default;
} */

.prevent-select
{
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.prevent-right-click
{
	pointer-events: auto;
}

.prevent-right-click *
{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.external-content-wrapper
{
    text-align: center;
    padding: 20px;
}

.external-preview img
{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.external-title
{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.external-description
{
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
}

.external-action-wrapper .btn
{
    padding: 12px 24px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.external-notice
{
    font-size: 0.9rem;
    color: #888;
}

.terms-page
{
	padding: 1.5rem;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	background: #fff;
	color: #333;
}

.user-info-box
{
	margin: 1.5em 0;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 1rem;
	background-color: #f9f9f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.title-row
{
	margin-top: 2rem;
	margin-bottom: 1rem;
	text-align: center;
}

.info-row
{
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 0.75em;
}

.info-label
{
	width: 10%;
	font-weight: bold;
	color: #333;
}

.info-value
{
	width: 90%;
	color: #555;
	word-break: break-word;
	text-align: start;
}

.terms-container
{
	margin: 2em 0;
	padding: 1.5rem;
	border-radius: 6px;
	background-color: #f9f9f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	color: #f1f1f1;
	line-height: 1.6;
	direction: rtl;
	unicode-bidi: plaintext;
}

.terms-title
{
	font-size: 1.4rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #333;
	text-align: start;
}

.terms-subtitle
{
	font-size: 1.2rem;
	font-weight: bold;
	margin: 1.5rem 0 1rem;
	color: #333;
	text-align: start;
}

.terms-body
{
	font-size: 0.95rem;
	color: #333;
	text-align: start;
	margin: 0 1rem;
}

.audio-content-wrapper
{
	text-align: center;
	padding: 1rem 0;
}

.audio-player-wrapper
{
	margin: 1rem 0;
}

.audio-player
{
	width: 100%;
	max-width: 350px;
	outline: none;
}

/* .limit-icon img
{
    max-width: 128px;
    margin-bottom: 20px;
} */

.limit-wrapper
{
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
}

.limit-reached-card
{
    max-width: 768px;
	width: 100%;
    margin: 40px auto;
    text-align: center;
    padding: 30px 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #333;
	height: 100%;
}

.limit-icon img
{
    max-width: 150px;
    margin-bottom: 20px;
}

.limit-message h2
{
    font-size: 22px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.limit-message .sub-text
{
    font-size: 16px;
    color: #666;
}

.limit-buttons
{
    margin-top: 20px;
}

.limit-buttons .btn
{
    display: inline-block;
    margin: 5px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-primary
{
    background-color: #3498db;
    color: white;
}

.btn-secondary
{
    background-color: #95a5a6;
    color: white;
}

.subscribe-wrapper
{
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
	background-color: #f9f9f9;
	height: 100%;
}

.subscribe-card
{
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	max-width: 500px;
	width: 100%;
	padding: 30px 25px;
	text-align: center;
	color: #333;
	height: 100%;
}

.subscribe-icon
{
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
}

.subscribe-title
{
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #222;
}

.subscribe-message
{
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 25px;
	color: #555;
}

.subscribe-user-info
{
	background: #f4f6f7;
	border-radius: 6px;
	padding: 12px 15px;
	margin-bottom: 20px;
	text-align: center;
	font-size: 14px;
	color: #444;
}

.subscribe-user-info div
{
	margin-bottom: 5px;
}

.subscribe-btn
{
	display: inline-block;
	background-color: #3399ff;
	color: white;
	font-size: 15px;
	font-weight: 500;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.subscribe-btn:hover
{
	background-color: #d35400;
}

.inactive-card
{
	background: #1e1e1e;
	border: 1px solid #444;
	border-radius: 12px;
	padding: 20px;
	max-width: 500px;
	margin: 40px auto;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	animation: fadeIn 0.4s ease-out;
}

.inactive-icon svg
{
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
}

.inactive-title
{
	margin: 20px;
}

.inactive-title h2
{
	color: #ffffff;
}

.inactive-message p
{
	margin: 8px 0;
}

.inactive-days
{
	font-size: 16px;
	color: #ffffff;
	opacity: 0.8;
}

.inactive-msg-main
{
	font-size: 18px;
	font-weight: bold;
	color: #ffca28;
}

.inactive-msg-extra
{
	font-size: 15px;
	color: #ddd;
	line-height: 1.5;
}

@media (max-width: 600px)
{
	.inactive-card
	{
		margin: 20px 16px;
		padding: 16px;
	}
}

@media (max-width: 768px)
{
	.info-label
	{
		width: 30%;
	}
	
	.info-value
	{
		width: 70%;
	}
}

@media (min-width: 768px)
{
	.info-label
	{
		width: 15%;
	}
	
	.info-value
	{
		width: 85%;
	}
}

@keyframes fadeIn
{
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
/* Modal backdrop */
.optout-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.65);
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
}

/* Modal box */
.optout-modal-content {
	background: #fff;
	color: #333;
	padding: 30px 25px 25px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 420px;
	text-align: center;
	position: relative;
	animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.btn-close {
	position: absolute;
	top: 12px;
	right: 15px;
	font-size: 1.4rem;
	font-weight: bold;
	color: #888;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s;
}
.btn-close:hover {
	color: #333;
}

/* Icon */
.optout-icon {
	font-size: 3rem;
	color: #f39c12;
	margin-bottom: 10px;
}

.optout-modal-content h3
{
	margin: 10px 0;
	font-size: 1.3rem;
}

.optout-modal-content p
{
	font-size: 1.2rem;
	color: #555;
}

.optout-actions
{
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.optout-actions .btn
{
	min-width: 120px;
	padding: 10px 15px;
	font-size: 1.1rem;
}

.btn-light
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: fit-content;
	background-color: #30c257;
	color: white;
	padding: 1.2rem;
	border-radius: 0.7rem;
	font-size: 1.1rem;
	font-weight: 500;
	height: 2.5rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
	cursor: pointer;
}

.btn-light:hover
{
	background-color: #248f40;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.btn-danger
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: fit-content;
	background-color: #c71e23;
	color: white;
	padding: 1.2rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	height: 2.5rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
	cursor: pointer;
}

.btn-danger:hover
{
	background-color: #b11b20;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

@keyframes fadeIn
{
	from { opacity: 0; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1); }
}

.btn-add-desktop
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: fit-content;
	background-color: #30c257;
	color: white;
	padding: 1.2rem;
	border-radius: 0.7rem;
	font-size: 1.1rem;
	font-weight: 500;
	height: 2.5rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
	cursor: pointer;
}

.btn-add-desktop:hover
{
	background-color: #248f40;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.btn-add-desktop .material-symbols-outlined
{
	margin-inline-start: 0.5rem;
	font-size: 1.3rem;
	left: 20px;
	margin: 0.2rem;
}

.btn-add-desktop .btn-text
{
	right: 20px;
	margin: 0.2rem;
}

.btn-remove-desktop
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: fit-content;
	background-color: #c71e23;
	color: white;
	padding: 1.2rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	height: 2.5rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
	cursor: pointer;
}

.btn-remove-desktop:hover
{
	background-color: #b11b20;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.btn-remove-desktop .material-symbols-outlined
{
	margin-inline-start: 0.5rem;
	font-size: 1.3rem;
	left: 20px;
	margin: 0.2rem;
}

.btn-remove-desktop .btn-text
{
	right: 20px;
	margin: 0.2rem;
}

.btn-download-desktop
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: 30%;
	background-color: #3399ff;
	color: white;
	padding: 1.5rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.3rem;
	font-weight: 500;
	height: 3rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
	cursor: pointer;
}

.btn-download-desktop:hover
{
	background-color: #0056b3;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.btn-download-desktop .material-symbols-outlined
{
	margin-inline-start: 0.5rem;
	font-size: 1.5rem;
	left: 20px;
	margin: 0.2rem;
}

.btn-download-desktop .btn-text
{
	right: 10px;
	margin: 0.2rem;
}

.btn-play-desktop
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: 30%;
	background-color: #1b60f5;
	color: white;
	padding: 1.5rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.3rem;
	font-weight: 500;
	height: 3rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
	cursor: pointer;
}

.btn-play-desktop:hover
{
	background-color: #094cdc;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.btn-play-desktop .material-symbols-outlined
{
	margin-inline-start: 0.5rem;
	font-size: 1.8rem;
	left: 20px;
	margin: 0.2rem;
}

.btn-play-desktop .btn-text
{
	right: 10px;
	margin: 0.2rem;
}

.action-button-wrapper
{
	text-align: center;
	margin: 1rem;
}

.action-button-wrapper .action-caption
{
	font-size: 1.3rem;
	color: #333;
	font-weight: 500;
	margin-top: 1rem;
	margin-bottom: 3rem;
}

.action-button-wrapper .btn-download
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 90%;
	background-color: #3399ff;
	color: white;
	padding: 1rem 2rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.3rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	height: 3rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
}

.action-button-wrapper .btn-download:hover
{
	background-color: #0056b3;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.action-button-wrapper .btn-play
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 90%;
	background-color: #1b60f5;
	color: white;
	padding: 1rem 2rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.3rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	height: 3rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
}

.action-button-wrapper .btn-play:hover
{
	background-color: #094cdc;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.action-button-wrapper .btn-add
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: auto;
	width: 90%;
	background-color: #30c257;
	color: white;
	padding: 1rem 2rem;
	border-radius: 0.7rem;
	font-size: 1.3rem;
	font-weight: 500;
	height: 3rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
}

.action-button-wrapper .btn-add:hover
{
	background-color: #248f40;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.action-button-wrapper .btn-remove
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10;
	width: 90%;
	background-color: #c71e23;
	color: white;
	padding: 1rem 2rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-size: 1.3rem;
	font-weight: 500;
	height: 3rem;
	border-style: none;
	box-sizing: border-box;
	position: relative;
}

.action-button-wrapper .btn-remove:hover
{
	background-color: #b11b20;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.action-button-wrapper .btn-download .material-symbols-outlined,
.action-button-wrapper .btn-play .material-symbols-outlined,
.action-button-wrapper .btn-add .material-symbols-outlined,
.action-button-wrapper .btn-remove .material-symbols-outlined
{
	position: absolute;
	margin-inline-start: 0.1rem;
	font-size: 1.5rem;
	left: 20px;
}

.loader-backdrop
{
	position: fixed;
	inset: 0;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.loader-spinner
{
	width: 50px;
	height: 50px;
	border: 6px solid #eee;
	border-top: 6px solid var(--primary-color, #1abc9c);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin
{
	to { transform: rotate(360deg); }
}

.lang-switcher
{
	margin-left: 1rem;
	position: relative;
}

.lang-button
{
	background: none;
	border: 0px;
	padding: 0.3rem 0.6rem;
	font-size: 0.85rem;
	font-weight: bold;
	color: #ffffff;
	cursor: pointer;
}

.lang-dropdown
{
	position: relative;
}

.lang-menu
{
	position: absolute;
	top: 110%;
	right: 0;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	list-style: none;
	padding: 0.3rem 0;
	margin: 0;
	z-index: 10;
	display: none;
}

.lang-dropdown:hover .lang-menu
{
	display: block;
}

.lang-menu li a
{
	display: block;
	padding: 0.3rem 0.8rem;
	font-size: 0.85rem;
	text-decoration: none;
	color: #333;
}

.lang-menu li a:hover
{
	background: #f0f0f0;
}

.lang-menu-mobile
{
	position: fixed;
	bottom: 60px;
	right: 1rem;
	background: white;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 0.5rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	z-index: 1000;
}

.content-action-area-desktop
{
	margin-bottom: 1rem;
}

.content-action-area-mobile
{
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 1.5rem;
}

.content-action-mobile
{
	padding: 1rem;
	width: 100%;
}

@media (max-width: 600px)
{
	.content-action-area-desktop
	{
		display: none;
	}
	
	.content-action-area-video-desktop
	{
		display: none;
	}
	.content-action-area-mobile
	{
		display: flex;
	}
	
	.content-action-area-video-mobile
	{
		display: flex;
	}
	
	.notice-text
	{
		padding: 0 1rem;
	}
	
	.text-preview pre
	{
		font-size: 1rem;
	}
}

@media (max-width: 1200px)
{
	.content-view-title-center
	{
		font-size: 14px;
	}
	
	.btn-add-desktop
	{
		font-size: 0.9rem;
		font-weight: 250;
		height: 2.0rem;
		padding: 0.3rem;
	}
	
	.btn-remove-desktop
	{
		font-size: 0.9rem;
		font-weight: 250;
		height: 2.0rem;
		padding: 0.3rem;
	}
}

@media (min-width: 768px)
{
	.page-container
	{
		max-width: 60%;
		padding: 0;
		background-color: var(--bg-color);
		box-shadow: 0 2px 5px var(--shadow-color);
		/* background-color: #fff; */
		/* box-shadow: 0 0 20px rgba(0,0,0,0.05); */
		/* border-radius: 8px; */
	}
	
	.portal-banner
	{
		height: 382px;
		margin: 1rem;
		padding: 1rem;
		border-radius: 15px;
	}
	
	.portal-footer
	{
		max-width: 60%;
	}
	
	.item-title
	{
		font-size: 1.2rem;
		padding: 1rem 1rem 3rem 1rem;
	}
	
	.item-extra
	{
		font-size: 1.2rem;
		padding: 0.8rem 0.8rem 0.8rem 0.8rem;
	}
	
	.count_badge
	{
		bottom: 12%;
		left: 10px;
	}
	
	/* 
	.portal-banner
	{
		height: 300px;
	}
	
	body
	{
		display: flex;
		justify-content: center;
		align-items: flex-start;
		min-height: 100vh;
		padding-top: 2rem;
		background: #f5f5f5;
	} */

	body
	{
		background: #f5f5f5;
	}
}

@media (max-width: 768px)
{
	hr
	{
		margin: 1.4rem 0 1.4rem 0;
	}
	
	.desktop-only
	{
		display: none;
	}
	
	.page-container
	{
		max-width: 100%;
		padding: 0;
		border-radius: 0;
	}
	
	.portal-banner
	{
		height: 180px;
	}
	
	.bottom-nav.mobile-only
	{
		display: flex;
		justify-content: space-around;
		align-items: center;
		position: fixed;
		bottom: 0;
		width: 100%;
		background: white;
		border-top: 1px solid #ccc;
		padding: 0.4rem 0;
		z-index: 999;
	}
	
	.bottom-nav a,
	.bottom-nav button
	{
		display: flex;
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		text-align: center;
		font-size: 0.75rem;
		color: #333;
		padding: 0 0.5rem;
		text-decoration: none;
		cursor: pointer;
	}
	
	.bottom-nav i
	{
		font-size: 1.4rem;
		margin-bottom: 0.2rem;
		color: #333;
	}
	
	.bottom-nav span
	{
		font-size: 0.7rem;
		line-height: 1;
		white-space: nowrap;
	}

	.bottom-nav button:hover i,
	.bottom-nav a:hover i
	{
		color: #007BFF;
	}
	
	.bottom-nav .material-icons-outlined
	{
		font-size: 24px;
		margin-bottom: 0.2rem;
		color: #333;
		transition: color 0.2s ease;
	}
	
	.bottom-nav a:hover .material-icons-outlined,
	.bottom-nav button:hover .material-icons-outlined
	{
		color: #007BFF;
	}
	
	.bottom_badge
	{
		bottom: 3px;
		left: 3px;
		font-size: 0.9rem;
	}
	
	.count_badge
	{
		bottom: 20%;
		left: 3px;
		font-size: 0.9rem;
	}
	
	.content-view-title-rtl
	{
		font-size: 18px;
	}

	.content-view-title-ltr
	{
		font-size: 18px;
	}
	
	.content-view-title-center
	{
		font-size: 18px;
	}
	
	.btn-add-desktop
	{
		font-size: 1.1rem;
		font-weight: 250;
		height: 2.1rem;
		padding: 0.8rem;
	}
	
	.btn-remove-desktop
	{
		font-size: 1.1rem;
		font-weight: 250;
		height: 2.1rem;
		padding: 0.8rem;
	}
	
	.content-favorite-button
	{
		font-size: 14px;
	}
	
	.notice-text
	{
		padding: 0 1rem;
	}
}

@media (max-width: 480px)
{
  :root { --grid-columns: 2; }
}

@media (min-width: 481px) and (max-width: 768px)
{
  :root { --grid-columns: 3; }
}

@media (min-width: 769px) and (max-width: 1200px)
{
  :root { --grid-columns: 4; }
}

@media (min-width: 1201px)
{
  :root { --grid-columns: 5; }
}