/* Base Styles */
html, body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
background: black;
font-family: Arial, sans-serif;
}

/* YouTube player base styles */
#youtube-player {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

#youtube-player.disabled-controls {
pointer-events: none;
}

#youtube-player.disabled-controls iframe {
pointer-events: none;
}

/* Video cover for inventory mode */
.video-cover {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: black;
z-index: 2;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.video-cover.visible {
opacity: 1;
pointer-events: auto;
}

/* Channel Index Overlay - now shows channel grid in normal mode */
.channel-index-overlay {
position: fixed;
top: 80px;
left: 20px;
right: 20px;
bottom: 120px;
background: transparent;
z-index: 240;
opacity: 0;
transform: translateY(-20px);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
pointer-events: none;
overflow: hidden;
backdrop-filter: blur(2px);
display: flex;
}

.channel-index-overlay.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

/* Channel Index backdrop - full clickable area behind content */
.channel-index-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
z-index: 1;
cursor: pointer;
}

/* Channel Index content area - grid layout */
.channel-index-content {
flex: 1;
height: 100%;
color: red;
font-size: 14px;
line-height: 1.6;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 15px;
align-content: center;
justify-items: center;
padding: 20px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: red transparent;
position: relative;
z-index: 2;
}

/* Adjust grid for fewer items */
.channel-index-content.few-items {
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
justify-content: center;
}

.channel-index-content::-webkit-scrollbar {
width: 6px;
}

.channel-index-content::-webkit-scrollbar-track {
background: transparent;
}

.channel-index-content::-webkit-scrollbar-thumb {
background: red;
border-radius: 3px;
}

/* Channel item styling for grid */
.channel-index-item-grid {
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
transition: all 0.3s ease;
width: 60px;
height: auto;
position: relative;
z-index: 3;
}

.channel-index-item-grid:hover {
transform: scale(1.1);
}

.channel-index-item-grid:active {
transform: scale(0.95);
}

.channel-index-grid-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
border: 2px solid red;
margin-bottom: 4px;
}

.channel-index-grid-avatar.global-channel {
border: 2px solid gold;
}

.channel-index-grid-title {
font-size: 7px;
font-weight: bold;
color: white;
line-height: 1.1;
max-width: 60px;
word-wrap: break-word;
text-align: center;
}

/* Current channel highlighting */
.channel-index-item-grid.current .channel-index-grid-title {
color: red;
font-weight: bold;
}

.channel-index-item-grid.current .channel-index-grid-avatar {
border: 2px solid red;
box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Hide channel index in landscape mode */
@media screen and (orientation: landscape) {
.channel-index-overlay {
display: none !important;
}
}

/* Loading */
.loading {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 18px;
z-index: 50;
}

/* Channel avatar styles */
.channel-avatar {
position: fixed;
top: 60px;
right: 20px;
width: 60px;
height: 60px;
border-radius: 50%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
border: 3px solid red;
z-index: 250;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.channel-avatar.blog-mode {
top: 120px;
left: 20px;
right: auto;
width: 50px;
height: 50px;
border-radius: 8px;
}

.antenna-dot {
position: absolute;
width: 4px;
height: 4px;
background: red;
border-radius: 50%;
top: -20px;
z-index: 251;
transition: opacity 0.3s ease;
}

.antenna-dot.left {
left: 10px;
}

.antenna-dot.right {
right: 10px;
}

.antenna-dot.hidden {
opacity: 0;
}

.antenna-dot.item-viewing {
opacity: 0;
transition: opacity 0.3s ease;
}

.channel-avatar-container.item-viewing {
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.age-daily.item-viewing {
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.typo-controls.item-viewing {
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.channel-avatar-container {
position: fixed;
top: 60px;
right: 20px;
width: 60px;
height: 60px;
z-index: 250;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.channel-avatar-container.blog-mode {
top: 120px;
left: 20px;
right: auto;
width: 50px;
height: 50px;
}

.channel-avatar-container:active {
transform: scale(0.9);
}

.channel-avatar-container::before,
.channel-avatar-container::after {
content: '';
position: absolute;
width: 2px;
height: 15px;
background: red;
top: -15px;
transition: opacity 0.3s ease;
}

.channel-avatar-container::before {
left: 15px;
transform: rotate(-20deg);
}

.channel-avatar-container::after {
right: 15px;
transform: rotate(20deg);
}

.channel-avatar-container.blog-mode::before,
.channel-avatar-container.blog-mode::after {
opacity: 0;
}

/* Global channel special styling */
.channel-avatar-container.global-channel {
border: 3px solid gold;
}

.channel-avatar-container.global-channel .channel-avatar {
border: 3px solid gold;
}

.channel-avatar-container.global-channel::before,
.channel-avatar-container.global-channel::after {
background: gold;
}

/* Channel info display */
.channel-info-display {
position: fixed;
bottom: 80px;
right: 20px;
color: white;
font-size: 18px;
text-align: right;
z-index: 200;
line-height: 1.4;
opacity: 1;
transition: opacity 0.3s ease;
pointer-events: none; /* Disable for most content */
}

.channel-info-name {
font-weight: bold;
margin-bottom: 4px;
}

.channel-info-location {
font-size: 16px;
opacity: 0.8;
}

.channel-info-publications {
font-size: 12px;
opacity: 0.8;
margin-top: 4px;
text-decoration: underline;
cursor: pointer;
display: none;
transition: opacity 0.3s ease;
pointer-events: auto; /* Ensure it's clickable */
position: relative;
z-index: 250; /* Higher than player and other elements */
padding: 8px; /* Add touch target padding */
margin: -8px; /* Negative margin to maintain visual spacing */
}

.channel-info-publications.visible {
display: block;
}

.channel-info-publications:hover {
opacity: 1;
}

.channel-info-publications:active {
transform: scale(0.95);
background: rgba(255, 255, 255, 0.1); /* Visual feedback */
border-radius: 4px;
}

/* Global channel info styling */
.channel-info-display.global-channel .channel-info-name {
color: gold;
}

/* Channel preview styles */
.channel-preview {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: black;
z-index: 50;
opacity: 0;
transform: translateY(100%);
transition: none;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.channel-preview.from-top {
transform: translateY(-100%);
}

.channel-preview-avatar {
width: 200px;
height: 200px;
border-radius: 50%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
border: 6px solid red;
margin-bottom: 30px;
box-shadow: 0 0 50px rgba(255, 0, 0, 0.3);
}

.channel-preview-info {
color: red;
font-size: 18px;
text-align: center;
max-width: 300px;
}

.channel-preview-info h1 {
margin: 0 0 15px 0;
font-size: 32px;
text-decoration: underline;
}

.channel-preview-info .bio {
font-size: 16px;
line-height: 1.4;
}

.channel-preview-info a {
color: red;
text-decoration: underline;
}

/* Global channel preview styling */
.channel-preview.global .channel-preview-avatar {
border: 6px solid gold;
box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.channel-preview.global .channel-preview-info {
color: gold;
}

.channel-preview.global .channel-preview-info a {
color: gold;
}

/* Inventory overlay */
.inventory-overlay {
position: fixed;
top: 80px;
left: 20px;
right: 20px;
bottom: 120px;
background: transparent;
z-index: 240;
opacity: 0;
transform: translateY(-20px);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
pointer-events: none;
overflow: hidden;
backdrop-filter: blur(2px);
display: flex;
}

.inventory-overlay.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

/* Inventory backdrop - full clickable area behind content */
.inventory-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
z-index: 1;
cursor: pointer;
}

/* Main inventory content area - 4 columns by default */
.inventory-content {
flex: 1;
height: 100%;
color: red;
font-size: 14px;
line-height: 1.6;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; /* Four columns by default */
gap: 15px; /* Reduced gap for 4 columns */
align-content: center;
justify-items: center;
padding: 20px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: red transparent;
position: relative;
z-index: 2; /* Above backdrop */
}

/* Single item should span all columns and be centered */
.inventory-content.single-item {
grid-template-columns: 1fr;
align-content: center;
justify-items: center;
display: flex;
justify-content: center;
align-items: center;
}

.inventory-content::-webkit-scrollbar {
width: 6px;
}

.inventory-content::-webkit-scrollbar-track {
background: transparent;
}

.inventory-content::-webkit-scrollbar-thumb {
background: red;
border-radius: 3px;
}

.publication-item-grid {
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
transition: all 0.3s ease;
width: 60px;
height: auto;
position: relative;
z-index: 3; /* Above backdrop and content container */
}

.publication-item-grid:hover {
transform: scale(1.1);
}

.publication-item-grid:active {
transform: scale(0.95);
}

.publication-grid-cover {
width: 50px;
height: 65px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
margin-bottom: 4px;
}

.publication-grid-cover img {
width: 100%;
height: 100%;
object-fit: contain;
}

.publication-grid-title {
font-size: 7px;
font-weight: bold;
color: white;
line-height: 1.1;
max-width: 60px;
word-wrap: break-word;
text-align: center;
}

.inventory-item {
cursor: pointer;
position: relative;
transition: all 0.3s ease;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
overflow: visible;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
z-index: 3; /* Above backdrop and content container */
}

.inventory-item.image-item {
width: auto;
height: auto;
max-width: 80px;
max-height: 80px;
min-width: 40px;
min-height: 40px;
}

.inventory-item.pdf-item-large {
width: 80px;
height: auto;
min-height: 100px;
box-shadow: none;
}

.inventory-item.single-glow.pdf-item-large {
width: 120px;
min-height: 140px;
box-shadow: none;
}

.inventory-item-pdf-large {
width: 100%;
height: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
background: transparent;
}

.inventory-item-pdf-title {
font-size: 8px;
font-weight: bold;
color: white;
text-align: center;
margin-bottom: 5px;
line-height: 1.1;
max-width: 80px;
word-wrap: break-word;
}

.inventory-item-pdf-cover-large {
width: 60px;
height: 75px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 4px;
background: transparent;
}

.inventory-item-pdf-cover-large img {
width: 100%;
height: 100%;
object-fit: contain;
}

.inventory-item-pdf-label-large {
font-size: 8px;
font-weight: bold;
color: white;
text-transform: lowercase;
line-height: 1.1;
text-align: center;
}

/* Single item PDF styling */
.inventory-content.single-item .inventory-item-pdf-title {
font-size: 12px;
max-width: 120px;
margin-bottom: 8px;
}

.inventory-content.single-item .inventory-item-pdf-cover-large {
width: 90px;
height: 110px;
margin-bottom: 8px;
}

.inventory-content.single-item .inventory-item-pdf-label-large {
font-size: 12px;
}

.inventory-item.text-item {
width: 50px;
height: 50px;
box-shadow: none; /* Remove glow for text items */
}

.inventory-item.single-glow {
box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.inventory-item.single-glow.image-item {
max-width: 160px;
max-height: 160px;
}

/* Text items should not have glow even when single */
.inventory-item.single-glow.text-item {
box-shadow: none;
}

.inventory-item:hover {
transform: scale(1.1);
box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

/* Text items should not have glow on hover either */
.inventory-item.text-item:hover {
transform: scale(1.1);
box-shadow: none;
}

.inventory-item.single-glow:hover {
transform: scale(1.15);
box-shadow: 0 0 25px rgba(255, 255, 255, 1);
}

/* Override hover glow for single text items too */
.inventory-item.single-glow.text-item:hover {
transform: scale(1.15);
box-shadow: none;
}

.inventory-item.enlarged {
transform: scale(4);
z-index: 280;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.inventory-item-image {
width: 100%;
height: 100%;
object-fit: contain;
background: transparent;
}

/* New text item styling - no background, just text */
.inventory-item-text-preview {
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
padding: 2px;
color: white;
text-align: center;
line-height: 1.1;
font-weight: bold;
word-wrap: break-word;
overflow: hidden;
position: relative;
}

/* Adaptive font sizing for text previews */
.inventory-item-text-preview.text-xs {
font-size: 6px;
}

.inventory-item-text-preview.text-sm {
font-size: 7px;
}

.inventory-item-text-preview.text-md {
font-size: 8px;
}

.inventory-item-text-preview.text-lg {
font-size: 9px;
}

.inventory-item-text-preview.text-xl {
font-size: 11px;
}

/* Single item text styling */
.inventory-content.single-item .inventory-item.text-item {
width: 120px;
height: 120px;
}

.inventory-content.single-item .inventory-item-text-preview {
width: 120px;
height: 120px;
max-width: 120px;
}

.inventory-content.single-item .inventory-item-text-preview.text-xs {
font-size: 10px;
}

.inventory-content.single-item .inventory-item-text-preview.text-sm {
font-size: 12px;
}

.inventory-content.single-item .inventory-item-text-preview.text-md {
font-size: 14px;
}

.inventory-content.single-item .inventory-item-text-preview.text-lg {
font-size: 16px;
}

.inventory-content.single-item .inventory-item-text-preview.text-xl {
font-size: 18px;
}

.inventory-item-pdf {
width: 100%;
height: auto;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: flex-start;
position: relative;
background: transparent;
}

.inventory-item-pdf-cover {
width: 100%;
height: auto;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2px;
}

.inventory-item-pdf-cover img {
width: 100%;
height: auto;
object-fit: contain;
}

.inventory-item-pdf-label {
font-size: 5px;
font-weight: normal;
color: white;
text-transform: lowercase;
line-height: 1;
align-self: flex-end;
}

/* Enlarged item overlay */
.enlarged-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
z-index: 270;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.enlarged-overlay.visible {
opacity: 1;
pointer-events: auto;
}

.inventory-content.viewing-item .inventory-item {
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.inventory-enlarged-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
z-index: 260;
}

.inventory-enlarged-image.visible {
opacity: 1;
pointer-events: auto;
}

.inventory-enlarged-image img {
max-width: 85%;
max-height: 85%;
object-fit: contain;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
z-index: 265;
position: relative;
}

/* Landscape corner labels - hidden by default, only show in landscape */
.landscape-channel-name {
display: none;
}

@media screen and (orientation: landscape) {
.landscape-channel-name {
display: block !important;
}
}

/* Enhanced landscape mode display */
@media screen and (orientation: landscape) {
/* Hide the entire inventory overlay and all its contents in landscape */
.inventory-overlay {
display: none !important;
}

.inventory-content {
display: none !important;
}

.inventory-backdrop {
display: none !important;
}

/* Hide ALL opened inventory items instantly in landscape */
.inventory-enlarged-image {
display: none !important;
}

.enlarged-overlay {
display: none !important;
}

.enlarged-content {
display: none !important;
}

.image-close-area {
display: none !important;
}

/* Hide text items instantly too */
.text-display-overlay {
display: none !important;
}

.text-display-background {
display: none !important;
}

/* Hide existing UI elements in landscape */
.channel-avatar-container,
.antenna-dot,
.header-info,
.mobile-controls,
.typo-controls,
.age-daily,
.title-blocker,
.bottom-blocker,
.channel-info-display {
display: none !important;
}

/* Landscape channel name in upper-right corner */
.landscape-channel-name {
position: fixed !important;
top: 20px !important;
right: 20px !important;
color: red !important;
font-size: 18px !important;
font-family: Arial, sans-serif !important;
z-index: 300 !important;
display: block !important;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.8) !important;
}

/* Global channel landscape styling */
.landscape-channel-name.global-channel {
color: red !important;
}
}

.enlarged-content {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 80vw;
max-height: calc(100vh - 200px);
z-index: 285;
opacity: 0;
pointer-events: none;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.enlarged-content.visible {
opacity: 1;
pointer-events: auto;
}

.enlarged-content img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.enlarged-content .image-content {
display: flex;
align-items: center;
justify-content: center;
}

.enlarged-content .image-content img {
max-width: 90vw;
max-height: calc(100vh - 200px);
}

.enlarged-content .image-content.horizontal {
position: fixed;
top: 180px;
left: 50%;
transform: translateX(-50%);
width: 85vw;
height: auto;
}

.enlarged-content .image-content.horizontal img {
width: 100%;
height: auto;
max-height: calc(100vh - 300px);
}

.enlarged-content .text-content {
background: rgba(255, 255, 255, 0.95);
color: #333;
padding: 20px 40px;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
max-width: 80vw;
max-height: calc(100vh - 200px);
overflow-y: auto;
font-size: 16px;
line-height: 1.6;
width: 70vw;
min-height: 200px;
}

.enlarged-content .pdf-content {
background: rgba(255, 255, 255, 0.95);
color: #333;
padding: 40px;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
text-align: center;
}

/* Text display overlay */
.text-display-overlay {
position: fixed;
top: 90px;
left: 50px;
right: 50px;
background: transparent;
z-index: 270;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
overflow: visible;
height: auto;
max-height: calc(100vh - 230px);
}

.text-display-overlay.visible {
opacity: 1;
pointer-events: auto;
}

.text-display-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
z-index: 265;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}

.text-display-background.visible {
opacity: 1;
pointer-events: auto;
}

/* Expanded clickable area for images */
.image-close-area {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
z-index: 260;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}

.image-close-area.visible {
opacity: 1;
pointer-events: auto;
}

.text-display-content {
width: 100%;
height: auto;
min-height: 100px;
max-height: calc(100vh - 230px);
padding: 20px;
overflow-y: auto;
background: transparent;
scrollbar-width: none;
-ms-overflow-style: none;
}

.text-display-content::-webkit-scrollbar {
display: none;
}

.text-display-text {
color: white;
font-size: 16px;
line-height: 1.6;
text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
0 0 12px rgba(255, 255, 255, 0.6),
0 0 16px rgba(255, 255, 255, 0.4);
background: transparent;
}

.text-display-title {
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
color: white;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
0 0 15px rgba(255, 255, 255, 0.7),
0 0 20px rgba(255, 255, 255, 0.5);
}

/* Item viewer modal */
.item-viewer {
display: none;
}

.empty-inventory {
color: red;
text-align: center;
padding: 40px;
font-size: 16px;
grid-column: 1 / -1; /* Span all columns */
position: relative;
z-index: 2; /* Above backdrop */
}

.header-info {
position: fixed;
top: 10px;
left: 10px;
right: 90px;
color: red;
font-size: 16px;
z-index: 200;
background: rgba(0,0,0,0.8);
padding: 10px;
border-radius: 8px;
text-align: center;
transition: opacity 0.3s ease, transform 0.3s ease;
display: none;
opacity: 0;
transform: translateY(-20px);
}

.header-info.visible {
display: block;
opacity: 1;
transform: translateY(0);
}

.header-info h1 {
margin: 0;
font-size: 24px;
text-decoration: underline;
}

.header-info .bio {
font-size: 14px;
margin-top: 10px;
}

.header-info a {
color: red;
text-decoration: underline;
}

/* Global channel header styling */
.header-info.global-channel {
color: gold;
}

.header-info.global-channel h1 {
color: gold;
}

.header-info.global-channel a {
color: gold;
}

/* Mobile controls */
.mobile-controls {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.9);
padding: 15px;
display: none;
justify-content: space-around;
align-items: center;
z-index: 200;
}

.control-btn {
background: red;
color: white;
border: none;
padding: 15px;
border-radius: 50%;
font-size: 20px;
width: 60px;
height: 60px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.control-btn:active {
background: darkred;
}

/* Typography controls */
.typo-controls {
position: fixed;
bottom: 55px;
left: 10px;
display: flex;
gap: 8px;
z-index: 200;
max-width: 120px; /* Match age daily width approximately */
}

.typo-btn {
background: transparent;
color: red;
border: 1px solid red;
padding: 4px 8px;
border-radius: 3px;
font-size: 12px;
font-family: Arial, sans-serif;
cursor: pointer;
text-transform: lowercase;
transition: background-color 0.2s ease;
}

.typo-btn:active {
background: rgba(255, 0, 0, 0.1);
}

/* Directory */
.directory {
position: fixed;
bottom: 100px;
right: 10px;
color: red;
font-size: 18px;
background: rgba(0,0,0,0.8);
padding: 10px;
border-radius: 8px;
z-index: 200;
cursor: pointer;
transition: opacity 0.3s ease;
}

.directory:active {
background: rgba(0,0,0,0.9);
}

/* Directory dropdown */
.directory-dropdown {
position: fixed;
bottom: 160px;
right: 10px;
width: 200px;
max-height: 300px;
background: rgba(0,0,0,0.9);
border-radius: 8px;
z-index: 199;
opacity: 0;
transform: translateY(20px);
pointer-events: none;
transition: all 0.3s ease;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: red transparent;
}

.directory-dropdown::-webkit-scrollbar {
width: 6px;
}

.directory-dropdown::-webkit-scrollbar-track {
background: transparent;
}

.directory-dropdown::-webkit-scrollbar-thumb {
background: red;
border-radius: 3px;
}

.directory-dropdown.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

.directory-item {
color: red;
font-size: 16px;
padding: 12px 15px;
cursor: pointer;
border-bottom: 1px solid rgba(255, 0, 0, 0.2);
transition: background-color 0.2s ease;
}

.directory-item:last-child {
border-bottom: none;
}

.directory-item:hover {
background: rgba(255, 0, 0, 0.1);
}

.directory-item:active {
background: rgba(255, 0, 0, 0.2);
}

.directory-item.current {
background: rgba(255, 0, 0, 0.15);
font-weight: bold;
}

/* Global channel directory item styling */
.directory-item.global-channel {
color: gold;
border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.directory-item.global-channel:hover {
background: rgba(255, 215, 0, 0.1);
}

.directory-item.global-channel:active {
background: rgba(255, 215, 0, 0.2);
}

.directory-item.global-channel.current {
background: rgba(255, 215, 0, 0.15);
}

.age-daily {
position: fixed;
bottom: 100px;
left: 10px;
color: red;
font-size: 18px;
background: rgba(0,0,0,0.8);
padding: 10px;
border-radius: 8px;
z-index: 200;
}

/* Swipe overlay */
.swipe-overlay {
position: fixed;
top: 80px;
left: 0;
right: 0;
bottom: 120px;
z-index: 150;
background: transparent;
touch-action: pan-y;
}

/* Black bar to hide video title */
.title-blocker {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background: black;
z-index: 180;
pointer-events: none;
}

/* Black bar to hide related videos at bottom */
.bottom-blocker {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 80px;
background: black;
z-index: 180;
pointer-events: none;
}