:root {
    --background-color: #fff;
    --text-color: #0f0f0f;
    --secondary-text: #606060;
    --hover-color: #f2f2f2;
    --border-color: #e5e5e5;
    --red: #ff0000;
    --blue: #5c99e8;
    --switch: #606060;
    --description-color: #e5e5e5;
    --header-height: 56px;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 72px;
    --header-height: 56px;
    --hover-color: #f1f1f1;
    --background-color: #fff;
    --border-color: #ddd;
    --dropdown-btn: #065fd4;
    --dropdown-bg: rgba(229,229,229,0.8);
    --backdrop-bg: rgba(64, 64, 64, 0.3);
    --app-drawer-bg: rgba(255,255,255,0.4);
    --sports-text: #000;
    --sports-section-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 15px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.7);
}

[data-theme="dark"] {
    --background-color: #0f0f0f;
    --text-color: #fff;
    --secondary-text: #aaa;
    --hover-color: #272727;
    --border-color: #3f3f3f;
    --description-color: #444;
    --switch: #065fd4;
    --dropdown-btn: #222;
    --dropdown-bg: #0f0f0f;
    --backdrop-bg: rgba(255,255,255,0.04);
    --app-drawer-bg: rgba(0,0,0,0.6);
    --sports-text: #aaa;
    --sports-section-shadow: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    cursor: url("resources/customCursor.ico"), auto;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-logo {
    width: 200px;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-icon {
    padding: 8px;
    border-radius: 50%;
}

.menu-icon:hover {
    background-color: var(--hover-color);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 28px;
}

.logo {
    height: 100%;
}

[data-theme="dark"] .logo {
    content: url("resources/SebTubeBBanner.png");
}

[data-theme="light"] .logo {
    content: url("resources/SebTubeWBanner.png");
}

@media (max-width: 550px) {
    .logo-container {
        content: url("resources/SebTubeAvatar.png");
        height: 32px;
    }
    .more-apps-btn {
        display: none;
    }
    .sidebar-section h3 {
        display: none;
    }
    .subscribe-btn.subscribed {
        padding: 10px 18px;
    }
    .server-btn {
        padding: 8px 15px !important;
        font-size: 14px !important;
        border-radius: 14px !important;
    }
    .server-container:hover .server-btn {
        border-radius: 15px 15px 0px 0px !important;
    }
}

/* Search Container */
.search-container {
    flex: 0 1 728px;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.search-box {
    flex: 1;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 8px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 40px;
}

#search-input:focus {
    border-color: #1c62b9;
    outline: none;
}

/* Add these styles to your CSS */
.suggestion-text {
    font-size: 16px;
    margin-top: 8px;
    color: var(--text-secondary);
}

.no-results-title {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.showing-instead {
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.suggested-query {
    color: var(--primary-color, #4CAF50);
    text-decoration: underline;
    font-weight: bold;
}

.suggested-title {
    font-size: 18px;
    margin: 30px 0 15px 0;
    color: var(--text-color);
}

.related-section-header {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.related-section-header h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.suggestion-poster {
    width: 40px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

.suggestion-action {
    margin-left: auto;
    color: #666;
    font-size: 14px;
}

/* Suggestion */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.search-suggestions.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.suggestion-item {
    display: flex;
    padding: 8px 16px;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: var(--hover-color);
}

.suggestion-item.selected {
    background-color: var(--hover-color);
}

.suggestion-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.suggestion-left {
    margin-right: 12px;
    color: var(--text-color);
}

.suggestion-info {
    flex-grow: 1;
}

.suggestion-title {
    font-size: 14px;
    margin-bottom: 2px;
    margin-left: 5px;
}

.suggestion-title strong {
    font-weight: bold;
    color: var(--text-color);
}

.suggestion-year {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
}

.search-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--text-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.clear-history {
    color: blue;
    text-align: right;
    padding: 10px;
    margin-right: 10px;
    border-top: 1px solid var(--border-color);
}

.clear-history:hover {
    text-decoration: underline;
}

.suggestion-item.loading,
.suggestion-item.no-results {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

/* Search Result */
.movies-grid.search-results-mode {
    display: block;
    padding: 24px 0;
}

/* Search result card styles */
.search-result-card {
    display: block;
    margin-bottom: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-card:hover {
    background-color: var(--hover-color);
}

.search-result-thumbnail {
    position: relative;
    height: 200px;
    padding: 6px;
    overflow: hidden;
    border-radius: 8px;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-thumbnail .hover-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.search-result-thumbnail:hover .hover-buttons {
    opacity: 1;
    transform: translateY(0);
}

.search-result-thumbnail .hover-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    font-size: 14px;
}

.search-result-thumbnail .watch-later-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color, #fff);
}

.search-result-thumbnail .watch-later-btn.active {
    background: var(--text-color);
    color: var(--background-color, #000);
}

.search-result-thumbnail .view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color, white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-result-thumbnail .hover-buttons {
        top: 10px;
        right: 10px;
        gap: 4px;
    }

    .search-result-thumbnail .hover-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Animation delays for staggered appearance */
.search-result-thumbnail .watch-later-btn {
    transition-delay: 0.05s;
}

.search-result-thumbnail .view-btn {
    transition-delay: 0.1s;
}

.search-result-info {
    padding: 12px 16px;
    flex-grow: 1;
}

.search-result-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.search-result-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.search-result-channel {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.channel-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.search-result-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.page-title-container {
    margin: 20px 0;
}

.page-title {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.no-results-container i {
    margin-bottom: 20px;
    opacity: 0.7;
}

.loading-search-results {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .search-results-mode .search-result-card {
        display: flex;
        align-items: flex-start;
    }
    
    .search-results-mode .search-result-thumbnail {
        width: 320px;
        min-width: 320px;
    }

    .search-results-mode .search-result-info {
        flex: 1;
    }
}

.notifications-container {
    position: relative;
    display: inline-block;
}

.notifications-btn {
    position: relative;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 18px;
    color: var(--text-color);
}

.notifications-btn:hover {
    background-color: var(--hover-color);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--red);
    color: var(--background-color);
    font-size: 12px;
    border-radius: 50%;
    padding: 3px 6px;
    font-weight: bold;
}

.notifications-panel {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--background-color);
    width: 360px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.notifications-panel.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

.notifications-panel-header {
    background-color: var(--background-color);
    padding: 10px 12px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.2);
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark-all-read-btn {
    background: var(--hover-color) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

.mark-all-read-btn:hover {
    background: var(--description-color);
}

.notif-settings-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
}

.notif-settings-btn:hover {
    background: var(--hover-color);
}

.notifications-panel-body {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.notification-item .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-color);
    color: var(--text-color);
    flex-shrink: 0;
}

.notification-item.subscribed .notif-icon {
    background: rgba(255,0,0,0.12);
    color: #ff0000;
}

.notification-item.cta .notif-icon {
    background: rgba(255,0,0,0.12);
    color: red;
}

.notification-item.welcome {
    position: relative;
    overflow: hidden;
}

.notification-item.welcome::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(closest-side, rgba(6,95,212,0.2), transparent);
    border-radius: 50%;
}

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

.notification-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Rich subscribed card */
.notification-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(145deg, var(--background-color), var(--hover-color));
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.notification-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.notification-chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
}

.notification-time {
    font-size: 11px;
    color: var(--secondary-text);
}

.notification-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
}

.notification-info .title-strong {
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, var(--text-color), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notification-info .welcome-title {
    font-family: "Dosis";
    font-size: 24px;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, var(--text-color), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--red);
}

.notification-info .subtitle {
    font-size: 12px;
    color: var(--secondary-text);
}

.notification-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--secondary-text);
}

.welcome-wave {
    animation-name: welcome-wave-animation;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes welcome-wave-animation {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Listening Popup */
.listening-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
    height: 110px;
    padding: 20px;
    display: none;
    z-index: 1000;
}

/* Server Dropdown Styles */
.server-container {
    position: relative;
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    float: right;
}

.server-btn {
    background-color: var(--primary-color, #4CAF50);
    color: var(--text-dark, #212121);
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-dropdown {
    display: none;
    font-size: 13px;
    position: absolute;
    z-index: 1000;
    min-width: 200px;
    background-color: var(--background-dark, #212121);
    border: 2px solid var(--primary-color, #4CAF50);
    border-radius: 0px 15px 15px 15px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    top: 100%;
    right: 0;
}

.server-option {
    color: var(--primary-color, #4CAF50);
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    transition: 0.1s;
}

.server-option:hover {
    background-color: var(--primary-color, #4CAF50);
    color: var(--text-dark, #212121);
}

.server-option:focus {
    background-color: var(--background-dark, #212121);
    color: var(--primary-color, #4CAF50);
}

.server-option:first-child:hover {
    border-radius: 0px 13px 0px 0px;
}

.server-option:last-child:hover {
    border-radius: 0px 0px 13px 13px;
}

.server-container:hover .server-btn {
    border-radius: 15px 15px 0px 0px;
}

.server-container:hover .server-dropdown {
    display: block;
}

/* Server indicator styles */
.server-option {
    position: relative;
    padding-left: 25px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.server-option.active-server {
    font-weight: bold;
    background-color: rgba(76, 175, 80, 0.1);
}

.server-indicator {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color, #4CAF50);
    animation: serverIndicatorFadeIn 0.3s ease-in-out;
}

@keyframes serverIndicatorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Ensure hover state still works properly with active indicator */
.server-option.active-server:hover {
    background-color: var(--primary-color, #4CAF50);
    color: var(--text-dark, #212121);
}

.server-option.active-server:hover .server-indicator {
    color: var(--text-dark, #212121);
}

/* Sports Status Badge */
.status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-status {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    animation: pulse-live 2s infinite;
}

.finished-status {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.upcoming-status {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-badge i {
    font-size: 8px;
}

/* Sports Filter Buttons */
.sports-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sports-filter-btn i {
    font-size: 14px;
}

/* Sports Styles */
.sports-page-title-container {
    margin: 20px 0 0 0;
}

.sports-info {
    padding: 8px;
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.teams-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.team-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin-bottom: 4px;
}

.team-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 8px 12px;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 4px;
}

/* Sports Modal Styles */
.sports-match-info {
    padding: 20px;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.match-status {
    text-align: center;
    margin-bottom: 24px;
}

.match-status h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.match-teams {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    min-height: 200px;
    overflow: hidden;
}

.match-teams-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.match-teams > * {
    position: relative;
    z-index: 2;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-details {
    text-align: center;
}

.team-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.score-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    background: var(--background-color);
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    min-width: 50px;
    text-align: center;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
}

.vs-divider span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    background: var(--background-color);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--hover-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-item strong {
    font-size: 12px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.sports-description-content {
    gap: 20px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.streams-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.streams-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.streams-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stream-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--hover-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stream-item:hover {
    background: var(--description-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stream-quality {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.stream-language {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
}

.stream-info {
    font-size: 11px;
    color: var(--secondary-text);
    font-style: italic;
}

/* Dark theme adjustments for sports */
[data-theme="dark"] .sports-info {
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(76, 175, 80, 0.15) 100%);
    border-color: rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .match-teams {
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-color: rgba(76, 175, 80, 0.2);
}

/* Responsive adjustments for sports */
@media (max-width: 768px) {
    .teams-score {
        gap: 6px;
    }

    .team-info {
        flex: 1;
    }

    .score-display {
        min-width: 70px;
        padding: 6px 10px;
    }

    .score {
        font-size: 16px;
    }

    .match-teams {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .team {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .team-logo-large {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 12px;
    }

    .team-details {
        text-align: left;
        flex: 1;
    }

    .vs-divider {
        margin: 8px 0;
        order: -1;
    }

    .match-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .streams-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .sports-info {
        padding: 10px;
    }

    .score-display {
        min-width: 60px;
        padding: 4px 8px;
    }

    .score {
        font-size: 14px;
    }

    .sports-match-info {
        padding: 16px;
    }

    .match-teams {
        padding: 12px;
    }

    .team-logo-large {
        width: 40px;
        height: 40px;
    }

    .score-large {
        font-size: 20px;
        padding: 6px 12px;
    }
}

/* Movie Carousel Styles */
.movie-carousel-container {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

.movie-carousel {
    position: relative;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
    padding: 10px 0;
}

.carousel-card {
    flex: 0 0 auto;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-card-inner {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.carousel-thumbnail {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-card:hover .carousel-thumbnail img {
    transform: scale(1.05);
}

.carousel-info {
    padding: 12px;
}

.carousel-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.carousel-year {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color, #4CAF50);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-nav:hover {
    background-color: var(--primary-color-dark, #388E3C);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.disabled {
    background-color: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

.carousel-header {
    margin: 20px 0 10px 0;
}

.carousel-header h3 {
    font-size: 18px;
    color: var(--text-color);
    margin: 0;
}

.carousel-divider {
    height: 1px;
    background-color: var(--border-color, rgba(255, 255, 255, 0.1));
    margin: 30px 0;
    width: 100%;
}

/* Add these styles to your CSS file */
.carousel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.rating-stars {
    display: flex;
    font-size: 12px;
    color: #FFD700; /* Gold color for stars */
}

.rating-stars i {
    margin-right: 2px;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-badge::after {
    content: "★";
    margin-left: 3px;
    color: #FFD700;
}

/* Update existing styles for better layout */
.carousel-info {
    padding: 12px;
}

.carousel-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.carousel-year {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-card {
        width: 160px;
    }
    
    .carousel-thumbnail {
        height: 220px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .carousel-card {
        width: 140px;
    }
    
    .carousel-thumbnail {
        height: 190px;
    }
    
    .movie-carousel {
        padding: 0 30px;
    }
}

@media (max-width: 550px) {
    .server-btn {
        padding: 8px 15px !important;
        font-size: 14px !important;
        border-radius: 14px !important;
    }
    
    .server-container:hover .server-btn {
        border-radius: 15px 15px 0px 0px !important;
    }
}

/* Google-like Audio Waveform */
.google-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.google-wave span {
    display: block;
    width: 8px;
    height: 16px;
    border-radius: 4px;
    animation: wave 1.2s infinite;
}

.google-wave span:nth-child(1) {
    background-color: #017453;
    animation-delay: 0s;
}

.google-wave span:nth-child(2) {
    background-color: #24a0c3;
    animation-delay: 0.2s;
}

.google-wave span:nth-child(3) {
    background-color: #ff9f43;
    animation-delay: 0.4s;
}

.google-wave span:nth-child(4) {
    background-color: #d93025;
    animation-delay: 0.6s;
}

.google-wave span:nth-child(5) {
    background-color: #1e8e3e;
    animation-delay: 0.8s;
}

/* Wave Animation */
@keyframes wave {

    0%,
    100% {
        height: 16px;
    }

    50% {
        height: 32px;
    }
}

.listening-popup .listening-text {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.listening-popup .error-text {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #d93025;
    display: none;
    margin-bottom: 10px;
}

/* Dimmed Background */
.dim-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.search-button {
    padding: 8px 24px;
    background-color: var(--hover-color);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 20px 20px 0;
    height: 40px;
    color: var(--text-color);
}

.voice-search-button {
    margin-left: 8px;
    padding: 8px;
    background-color: var(--hover-color);
    border: none;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

/* Profile Container Styles */
.profile-container {
    position: relative;
    margin-left: 8px;
}

.profile-container img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s;
}

.profile-container img:hover {
    transform: scale(1.1);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    max-height: 600px;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.profile-menu::-webkit-scrollbar {
    width: 8px;
    border-radius: 10px;
}

.profile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.profile-menu::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.profile-menu.active {
    display: block;
    animation: menuFadeIn 0.2s ease;
}

.profile-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}

.profile-user-info img {
    width: 40px;
    height: 40px;
}

.profile-user-details {
    flex: 1;
}

.profile-login {
    font-weight: bold;
    font-size: 16px;
    margin-top: 4px;
    color: var(--blue);
}

.profile-signup {
    color: var(--secondary-text);
    font-size: 14px;
}

.profile-login:hover {
    text-decoration: underline;
}

.profile-signup:hover {
    text-decoration: underline;
}

.profile-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 4px;
}

.profile-email {
    color: var(--secondary-text);
    font-size: 14px;
}

.profile-manage-link {
    color: var(--blue);
    font-size: 14px;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.profile-manage-link:hover {
    text-decoration: underline;
}

.profile-sections {
    padding: 8px 0;
}

.profile-section {
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
}

.profile-menu-item:hover {
    background-color: var(--hover-color);
}

.profile-menu-item i {
    width: 24px;
    font-size: 18px;
    text-align: center;
}

.profile-menu-item svg {
    fill: var(--text-color);
    width: 24px;
    height: 24px;
}

.profile-menu-item span {
    font-size: 16px;
}

.profile-menu-item.danger {
    color: var(--red);
}

.profile-switch-account {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-switch-account img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.profile-switch-details {
    flex: 1;
}

.profile-switch-name {
    font-size: 14px;
    font-weight: 500;
}

.profile-switch-email {
    font-size: 12px;
    color: var(--secondary-text);
}

.profile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.profile-theme-toggle:hover {
    background-color: var(--hover-color);
}

.profile-theme-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-theme-label i {
    width: 24px;
    font-size: 18px;
    text-align: center;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.profile-theme-label span{
    font-size: 16px;
    transition: font-size 0.3s ease;
}

.theme-icon-rotate {
  transform: rotate(360deg);
  opacity: 0;
}

.profile-theme-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: var(--switch);
    border-radius: 10px;
    transition: background-color 0.2s;
}

.profile-theme-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

[data-theme="dark"] .profile-theme-switch::after {
    transform: translateX(20px);
}

.profile-footer {
    padding: 16px;
    font-size: 12px;
    color: var(--secondary-text);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Animation for Profile Menu */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Right Section */
.right-section {
    display: flex;
    align-items: center;
}

/* Apps Drawer */
.apps-container {
    position: relative;
}

.apps-drawer {
    position: absolute;
    top: calc(100% + 4px);
    right: -30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 16px 38px rgba(0,0,0,0.22);
    padding: 12px;
    backdrop-filter: blur(10px) brightness(1.2) contrast(1.2);
    background: var(--app-drawer-bg);
    z-index: 1100;
    display: none;
}

.apps-drawer.open {
    display: block;
    animation: slideIn 0.18s ease-out;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
}

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

.app-item img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.app-item span {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .apps-drawer { width: 280px; right: -20px; }
}

.right-section button {
    padding: 8px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-color);
}

.right-section button:hover {
    background-color: var(--hover-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-y: auto;
    padding: 8px 0;
    z-index: 900;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    font-family: Arial, sans-serif;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h3 {
    padding: 8px 16px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 0 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.sidebar-item:hover {
    background-color: var(--hover-color);
}

.sidebar-item.active {
    background-color: var(--hover-color);
    font-weight: 500;
    color: var(--text-color);
}

.sidebar-item i {
    margin-right: 16px;
    font-size: 20px;
    color: var(--secondary-text);
    width: 24px;
    text-align: center;
}

#sports-section {
    background: repeating-linear-gradient(
        135deg,
        rgba(0,128,0,0.4),
        rgba(0,128,0,0.4) 20px,
        rgba(0,128,0,0.7) 20px,
        rgba(0,128,0,0.7) 40px
    );
}

#sports-section i,
#sports-section span {
    text-shadow: var(--sports-section-shadow);
};

.sidebar-item span {
    font-size: 14px;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-item span {
    display: none;
}

/* Content Area */
.content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 24px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
}

.content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Mobile Responsiveness */
@media (max-width: 766px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .sidebar-item span {
        display: none;
    }

    .sidebar-section h3 {
        font-size: 10px;
        padding: 0px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .sidebar.collapsed {
        width: 0px;
    }

    .content.expanded {
        margin-left: 0px;
    }

    .notifications-panel {
        width: 330px;
    }
}

/* Filters */
.filters-container {
    position: sticky;
    top: var(--header-height);
    background-color: var(--background-color);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 800;
}

.filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--hover-color);
    color: var(--text-color);
    white-space: nowrap;
    font-size: 14px;
}

.filter-button.active {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 24px 0;
}

.movie-card {
    transition: transform 0.2s;
}

.movie-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.movie-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.movie-thumbnail:hover .hover-buttons {
    opacity: 1;
    transform: translateY(0);
}

.hover-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    font-size: 14px;
}

.watch-later-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color, #fff);
}

.watch-later-btn.active {
    background: var(--text-color);
    color: var(--background-color, #000);
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color, white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hover-buttons {
        top: 6px;
        right: 6px;
        gap: 4px;
    }

    .hover-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Animation delays for staggered appearance */
.watch-later-btn {
    transition-delay: 0.05s;
}

.view-btn {
    transition-delay: 0.1s;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.movie-info {
    display: flex;
    gap: 12px;
}

.channel-thumbnail {
    width: 36px;
    height: 36px;
}

.channel-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.movie-details {
    flex: 1;
}

.movie-details h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-data {
    color: var(--secondary-text);
    font-size: 14px;
}

.meta-data span {
    display: block;
    line-height: 1.5;
}

/* Progress-Bar */
.progress-bar {
    position: absolute;
    height: 5px;
    bottom: 0;
    left: 0;
    background-color: var(--red);
}

.remaining-bar {
    position: absolute;
    height: 5px;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.minimize-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 14px;
    padding: 8px;
}

/* Server Dropdown Styles */
.server-container {
    position: relative;
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    float: right;
}

.server-btn {
    background-color: var(--primary-color, #4CAF50);
    color: var(--hover-color);
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-dropdown {
    display: none;
    font-size: 13px;
    position: absolute;
    z-index: 1000;
    min-width: 200px;
    background-color: rgba(33,33,33,0.6);
    border: 2px solid var(--primary-color, #4CAF50);
    border-radius: 15px 0px 15px 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    top: 100%;
    right: 0;
}

.server-option {
    color: var(--primary-color, #4CAF50);
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    transition: 0.1s;
}

.server-option:hover {
    background-color: var(--primary-color, #4CAF50);
    color: var(--text-dark, #212121);
}

.server-option:focus {
    background-color: rgba(33,33,33,0.6);
    color: var(--primary-color, #4CAF50);
}

/* Apply special border radius to first and last options */
.server-option:first-child:hover {
    border-radius: 13px 0px 0px 0px;
}

.server-option:last-child:hover {
    border-radius: 0px 0px 13px 13px;
}

/* Change button border radius on hover */
.server-container:hover .server-btn {
    border-radius: 15px 15px 0px 0px;
}

/* Show dropdown on hover */
.server-container:hover .server-dropdown {
    display: block;
}

/* Play Skip Btn */
.skip-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.skip-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.play-icon {
    display: none;
}

@media (max-width: 765px) {
    .play-icon {
        display: block;
    }
}

/* Video Optiions */
.options-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.options-icon {
    font-size: 16px;
}

.menu-list {
    position: absolute;
    top: 24px;
    right: 0;
    background-color: var(--background-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    list-style: none;
    margin: 0;
    z-index: 1000;
    width: 200px;
}

.menu-list li {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-color);
}

.menu-list li:first-child:hover {
    border-radius: 4px 4px 0px 0px;
}

.menu-list li:last-child:hover {
    border-radius: 0px 0px 4px 4px;
}

.menu-list li:hover {
    background-color: var(--hover-color);
}

.menu-list.hidden {
    display: none;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    width: 95%;
    max-width: 1280px;
    margin: 20px auto;
    background-color: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: var(--background-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 0 20px 20px 20px;
}

.video-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    padding: 12px 0;
}

.views-date {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 12px;
}

.views-date span:not(:last-child)::after {
    content: "•";
    margin: 0 4px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.action-buttons::-webkit-scrollbar {
    display: none;
}

.action-buttons button {
    background: var(--hover-color);
    border: none;
    padding: 10px 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

.action-buttons button:hover {
    background-color: var(--description-color);
}

.action-buttons button i {
    font-size: 18px;
}

.action-buttons button span {
    font-size: 14px;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton-comment {
    opacity: 0.7;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--hover-color) 8%, #f0f0f0 18%, var(--hover-color) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s linear infinite forwards;
}

.skeleton-author {
    height: 14px;
    width: 120px;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--hover-color) 8%, #f0f0f0 18%, var(--hover-color) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s linear infinite forwards;
    border-radius: 4px;
}

.skeleton-date {
    height: 10px;
    width: 80px;
    background: linear-gradient(to right, var(--hover-color) 8%, #f0f0f0 18%, var(--hover-color) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s linear infinite forwards;
    border-radius: 4px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin: 10px 0;
    background: linear-gradient(to right, var(--hover-color) 8%, #f0f0f0 18%, var(--hover-color) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s linear infinite forwards;
    border-radius: 4px;
}

.skeleton-action {
    height: 12px;
    width: 60px;
    margin-right: 15px;
    background: linear-gradient(to right, var(--hover-color) 8%, #f0f0f0 18%, var(--hover-color) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s linear infinite forwards;
    border-radius: 4px;
    display: inline-block;
}

.like-btn,
.dislike-btn {
    position: relative;
    overflow: visible;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border: none;
    background: transparent;
}

.like-btn:hover .fa-thumbs-up,
.dislike-btn:hover .fa-thumbs-down {
    transform: scale(1.1);
}

.like-btn.active {
    color: var(--blue) !important;
}

.like-btn.active .fa-thumbs-up {
    animation: thumbsUpGesture 0.6s ease-out;
    color: var(--blue) !important;
}

.dislike-btn.active {
    color: var(--red) !important;
}

.dislike-btn.active .fa-thumbs-down {
    animation: thumbsDownGesture 0.6s ease-out;
    color: var(--red) !important;
}

@keyframes thumbsUpGesture {
    0% {
        transform: scale(1) rotate(0deg) translateY(0px);
    }

    25% {
        transform: scale(1.3) rotate(-15deg) translateY(-5px);
    }

    50% {
        transform: scale(1.4) rotate(10deg) translateY(-8px);
    }

    75% {
        transform: scale(1.2) rotate(-5deg) translateY(-3px);
    }

    100% {
        transform: scale(1.1) rotate(0deg) translateY(0px);
    }
}

@keyframes thumbsDownGesture {
    0% {
        transform: scale(1) rotate(0deg) translateY(0px);
    }

    25% {
        transform: scale(1.3) rotate(15deg) translateY(5px);
    }

    50% {
        transform: scale(1.4) rotate(-10deg) translateY(8px);
    }

    75% {
        transform: scale(1.2) rotate(5deg) translateY(3px);
    }

    100% {
        transform: scale(1.1) rotate(0deg) translateY(0px);
    }
}

/* Extended Firework Container */
.firework-container {
    position: fixed;
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

/* Launch Particle */
.firework-launcher {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: fireworkLaunch 0.4s ease-out forwards;
    box-shadow: 0 0 12px currentColor;
    transform: translate(-50%, -50%);
}

@keyframes fireworkLaunch {
    0% {
        transform: translate(-50%, -50%) translate(0, 30px) scale(0.5);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) translate(0, -20px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) translate(0, -50px) scale(0.3);
        opacity: 0;
    }
}

/* Main Explosion Particles - Extended Range */
.firework-particle.main-explosion {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: fireworkExplosionExtended 3s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes fireworkExplosionExtended {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0);
        opacity: 1;
    }

    10% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 0.2), calc(var(--end-y) * 0.2)) scale(1.5);
        opacity: 1;
    }

    25% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 0.6), calc(var(--end-y) * 0.6)) scale(1.2);
        opacity: 0.9;
    }

    50% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 0.9), calc(var(--end-y) * 0.9)) scale(1);
        opacity: 0.7;
    }

    75% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 1.1), calc(var(--end-y) * 1.1)) scale(0.8);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 1.3), calc(var(--end-y) * 1.3 + 80px)) scale(0.2);
        opacity: 0;
    }
}

/* Secondary Explosion Particles - Extended Range */
.firework-particle.secondary-explosion {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: secondaryExplosionExtended 2.5s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes secondaryExplosionExtended {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0);
        opacity: 1;
    }

    15% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 0.3), calc(var(--end-y) * 0.3)) scale(1.3);
        opacity: 1;
    }

    40% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 0.8), calc(var(--end-y) * 0.8)) scale(1);
        opacity: 0.8;
    }

    70% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 1.1), calc(var(--end-y) * 1.1)) scale(0.7);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2 + 60px)) scale(0.1);
        opacity: 0;
    }
}

/* Trailing Sparkles - Extended Range */
.firework-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: sparkleTrailExtended 1.5s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes sparkleTrailExtended {
    0% {
        transform: translate(-50%, -50%) translate(var(--start-x), var(--start-y)) scale(1);
        opacity: 1;
    }

    30% {
        transform: translate(-50%, -50%) translate(calc(var(--start-x) * 0.9), calc(var(--start-y) * 0.9 + 20px)) scale(0.9);
        opacity: 0.9;
    }

    60% {
        transform: translate(-50%, -50%) translate(calc(var(--start-x) * 0.7), calc(var(--start-y) * 0.7 + 45px)) scale(0.6);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) translate(calc(var(--start-x) * 0.5), calc(var(--start-y) * 0.5 + 80px)) scale(0.2);
        opacity: 0;
    }
}

.like-btn.animate-press .fa-thumbs-up {
    animation: pressThumbsUp 0.15s ease-out;
}

.dislike-btn.animate-press .fa-thumbs-down {
    animation: pressThumbsDown 0.15s ease-out;
}

@keyframes pressThumbsUp {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(0.9) translateY(2px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes pressThumbsDown {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(0.9) translateY(-2px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.fa-thumbs-up,
.fa-thumbs-down {
    transition: all 0.2s ease;
    display: inline-block;
}

.like-btn {
    z-index: 1;
}

/* Download */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--red);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.check-mark {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
}

.check-mark:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 15px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    top: 0;
    left: 6px;
    transform: rotate(45deg) scale(0);
    animation: check-animation 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    transform-origin: center;
}

@keyframes check-animation {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }

    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

/* Channel Info Styling */
.channel-info {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 0;
}

.channel-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-details h3 {
    font-size: 18px;
    margin: 0;
    color: var(--text-color);
}

.channel-details span {
    font-size: 14px;
    color: var(--secondary-text);
}

.subscribe-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subscribe-btn:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.subscribe-btn.subscribed {
    background-color: #333;
    color: #fff;
}

.subscribe-btn.subscribed:hover {
    background-color: #444;
    transform: scale(1.05);
}

/* Enhanced Video Description Styles */
.description-container {
    position: relative;
    padding: 20px;
    background: var(--description-color);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.description-container.expanded {
    padding-bottom: 60px;
}

/* Header contains only heading and rating */
.description-header {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.overview-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

/* Rating positioned at top right */
.rating-container-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.rating-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.rating-score {
    display: flex;
    align-items: baseline;
    justify-content: center;    
}

.rating-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.rating-total {
    font-size: 12px;
    color: var(--secondary-text);
}

.rating-label {
    font-size: 11px;
    color: var(--secondary-text);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Movie meta below header */
.movie-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.tagline {
    font-size: 14px;
    color: var(--secondary-text);
    font-style: italic;
    opacity: 0.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    font-size: 12px;
    color: var(--secondary-text);
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Main content layout - always left-right */
.description-content {
    display: grid;
    grid-template-columns: 20% 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.description-content.basic {
    grid-template-columns: 1fr;
}

.poster-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.poster-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.poster-wrapper {
    position: relative;
    height: 125px;
    overflow: hidden;
    border-radius: 8px;
    transition: height 0.5s ease;
    width: 100%;
}

.poster-wrapper.expanded {
    height: auto;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.poster-wrapper.expanded .movie-poster {
    height: auto;
    object-fit: contain;
}

.movie-poster:hover {
    transform: scale(1.02);
}

/* Fade overlay for poster - only when not expanded */
.poster-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--description-color));
    pointer-events: none;
    border-radius: 0 0 8px 8px;
    transition: opacity 0.3s ease;
}

.poster-wrapper.expanded .poster-fade-overlay {
    opacity: 0;
}

.language-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--secondary-text);
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.language-info i {
    font-size: 12px;
    flex-shrink: 0;
}

.content-section {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.overview-text-container {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.overview-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Text fade overlay */
.text-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--description-color));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Enhanced mobile fade overlay */
.mobile-fade-overlay {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--description-color));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.show-more-btn {
    position: absolute;
    background: none;
    border: none;
    color: var(--blue);
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
    right: 20px;
    bottom: 20px;
}

.show-more-btn:hover {
    transform: translateY(-1px);
}

.show-more-btn i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.description-container.expanded .show-more-btn i {
    transform: rotate(180deg);
}

.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.expanded-content.expanded {
    max-height: 500px;
    opacity: 1;
}

/* Custom Explore Button from Uiverse.io */
.explore-button {
    width: 110px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: rgb(161, 255, 20);
    border-radius: 30px;
    color: rgb(19, 19, 19);
    font-weight: 600;
    border: none;
    position: relative;
    transition-duration: .2s;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);
    padding-left: 8px;
    transition-duration: .5s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.svgIcon {
    height: 25px;
    transition-duration: 1.5s;
    flex-shrink: 0;
}

.svgIcon path {
    fill: rgb(19, 19, 19);
}

.explore-button:hover {
    background-color: rgb(192, 255, 20);
    transition-duration: .5s;
}

.explore-button:active {
    transform: scale(0.97);
    transition-duration: .2s;
}

.explore-button:hover .svgIcon {
    transform: rotate(250deg);
    transition-duration: 1.5s;
}

/* Loading Skeleton Styles */
.description-skeleton {
    padding: 20px;
    background: var(--background-color);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-sizing: border-box;
}

.skeleton-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.skeleton-title {
    height: 28px;
    width: 200px;
    max-width: 60%;
    background: var(--hover-color);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-rating-circle {
    width: 90px;
    height: 45px;
    background: var(--hover-color);
    border-radius: 10%;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    margin-left: 20px;
    flex-shrink: 0;
    position: relative;
}

.skeleton-rating-circle::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 12px;
    background: var(--hover-color);
    border-radius: 6px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-meta {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.skeleton-tagline {
    height: 16px;
    width: 180px;
    background: var(--hover-color);
    border-radius: 8px;
    margin-bottom: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skeleton-tag {
    height: 20px;
    width: 60px;
    background: var(--hover-color);
    border-radius: 12px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    flex-shrink: 0;
}

.skeleton-tag:nth-child(2) {
    width: 80px;
    animation-delay: 0.2s;
}

.skeleton-tag:nth-child(3) {
    width: 70px;
    animation-delay: 0.4s;
}

.skeleton-content {
    display: grid;
    grid-template-columns: 20% 1fr;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    margin-bottom: 20px;
}

.skeleton-poster-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skeleton-poster {
    height: 200px;
    background: var(--hover-color);
    border-radius: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    width: 100%;
    margin-bottom: 12px;
}

.skeleton-language {
    height: 14px;
    width: 80%;
    background: var(--hover-color);
    border-radius: 7px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    animation-delay: 0.3s;
}

.skeleton-content-section {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.skeleton-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.skeleton-line {
    height: 16px;
    background: var(--hover-color);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    width: 100%;
}

.skeleton-line:nth-child(2) {
    animation-delay: 0.1s;
}

.skeleton-line:nth-child(3) {
    animation-delay: 0.2s;
}

.skeleton-line:nth-child(4) {
    animation-delay: 0.3s;
}

.skeleton-line.short {
    width: 70%;
}

.skeleton-line.shorter {
    width: 45%;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Responsive Design for Skeleton */
@media (max-width: 768px) {
    .skeleton-content {
        grid-template-columns: 25% 1fr;
        gap: 16px;
    }

    .skeleton-rating-circle {
        width: 70px;
        height: 70px;
        margin-left: 16px;
    }

    .skeleton-rating-circle::after {
        width: 50px;
        height: 10px;
        bottom: -10px;
    }

    .skeleton-poster {
        height: 180px;
    }

    .skeleton-title {
        width: 150px;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .description-skeleton {
        padding: 16px;
    }

    .skeleton-content {
        grid-template-columns: 30% 1fr;
        gap: 12px;
    }

    .skeleton-rating-circle {
        width: 60px;
        height: 60px;
        margin-left: 12px;
    }

    .skeleton-rating-circle::after {
        width: 45px;
        height: 9px;
        bottom: -9px;
    }

    .skeleton-poster {
        height: 150px;
    }

    .skeleton-title {
        width: 120px;
        height: 24px;
        max-width: 45%;
    }

    .skeleton-tagline {
        width: 140px;
        height: 14px;
    }

    .skeleton-tag {
        height: 18px;
        width: 50px;
    }

    .skeleton-tag:nth-child(2) {
        width: 65px;
    }

    .skeleton-tag:nth-child(3) {
        width: 55px;
    }
}

@media (max-width: 360px) {
    .description-skeleton {
        padding: 14px;
    }

    .skeleton-content {
        grid-template-columns: 35% 1fr;
        gap: 10px;
    }

    .skeleton-rating-circle {
        width: 55px;
        height: 55px;
        margin-left: 8px;
    }

    .skeleton-rating-circle::after {
        width: 40px;
        height: 8px;
        bottom: -8px;
    }

    .skeleton-poster {
        height: 130px;
    }

    .skeleton-title {
        width: 100px;
        height: 22px;
        max-width: 40%;
    }

    .skeleton-tagline {
        width: 120px;
        height: 12px;
    }
}

/* Dark theme adjustments for skeleton */
[data-theme="dark"] .skeleton-title,
[data-theme="dark"] .skeleton-rating-circle,
[data-theme="dark"] .skeleton-rating-circle::after,
[data-theme="dark"] .skeleton-tagline,
[data-theme="dark"] .skeleton-tag,
[data-theme="dark"] .skeleton-poster,
[data-theme="dark"] .skeleton-language,
[data-theme="dark"] .skeleton-line {
    background: var(--description-color);
}

/* Reduced motion support for skeleton */
@media (prefers-reduced-motion: reduce) {

    .skeleton-title,
    .skeleton-rating-circle,
    .skeleton-rating-circle::after,
    .skeleton-tagline,
    .skeleton-tag,
    .skeleton-poster,
    .skeleton-language,
    .skeleton-line {
        animation: none;
        opacity: 0.6;
    }
}

/* Loading More Indicator */
.loading-more {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-more .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Skeleton Loading Cards */
.skeleton-card {
    opacity: 0.7;
    pointer-events: none;
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--hover-color);
}

.skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 12px;
}

.skeleton-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 16px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-card .hover-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 1;
    transform: translateY(0);
}

.skeleton-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-icon {
    width: 14px;
    height: 14px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-title {
    height: 20px;
    width: 85%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-channel-name {
    height: 14px;
    width: 60%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 4px;
}

.skeleton-views-date {
    height: 14px;
    width: 75%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-options-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* Dark theme adjustments for skeleton */
[data-theme="dark"] .skeleton-image,
[data-theme="dark"] .skeleton-duration,
[data-theme="dark"] .skeleton-btn,
[data-theme="dark"] .skeleton-icon,
[data-theme="dark"] .skeleton-avatar,
[data-theme="dark"] .skeleton-title,
[data-theme="dark"] .skeleton-channel-name,
[data-theme="dark"] .skeleton-views-date,
[data-theme="dark"] .skeleton-options-icon {
    background: linear-gradient(90deg, var(--description-color) 25%, var(--hover-color) 50%, var(--description-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

/* Responsive adjustments for skeleton cards */
@media (max-width: 768px) {
    .skeleton-card .hover-buttons {
        top: 6px;
        right: 6px;
        gap: 4px;
    }

    .skeleton-btn {
        width: 28px;
        height: 28px;
    }

    .skeleton-icon {
        width: 12px;
        height: 12px;
    }
}

/* Reduced motion support for skeleton cards */
@media (prefers-reduced-motion: reduce) {
    .skeleton-card,
    .skeleton-image,
    .skeleton-duration,
    .skeleton-btn,
    .skeleton-icon,
    .skeleton-avatar,
    .skeleton-title,
    .skeleton-channel-name,
    .skeleton-views-date,
    .skeleton-options-icon {
        animation: none;
    }

    .skeleton-card {
        opacity: 0.5;
    }
}

/* Sports Skeleton Styles */
.skeleton-sports-card {
    opacity: 0.7;
    pointer-events: none;
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-sports-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-sports-status {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 60px;
    height: 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-sports-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-sports-icon {
    width: 14px;
    height: 14px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

.skeleton-sports-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-sports-title {
    height: 16px;
    width: 85%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-sports-channel-name {
    height: 14px;
    width: 60%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 2.5px;
}

.skeleton-sports-views-date {
    height: 14px;
    width: 75%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-sports-options-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

.skeleton-sports-team-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border: 2px solid var(--border-color);
}

.skeleton-sports-team-name {
    height: 12px;
    width: 80px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-top: 4px;
}

.skeleton-sports-status-badge {
    width: 50px;
    height: 16px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
    margin: 4px 0;
}

.skeleton-sports-score {
    height: 18px;
    width: 60px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
    margin-top: 4px;
}

/* Dark theme adjustments for sports skeleton */
[data-theme="dark"] .skeleton-sports-image,
[data-theme="dark"] .skeleton-sports-status,
[data-theme="dark"] .skeleton-sports-btn,
[data-theme="dark"] .skeleton-sports-icon,
[data-theme="dark"] .skeleton-sports-avatar,
[data-theme="dark"] .skeleton-sports-title,
[data-theme="dark"] .skeleton-sports-channel-name,
[data-theme="dark"] .skeleton-sports-views-date,
[data-theme="dark"] .skeleton-sports-options-icon,
[data-theme="dark"] .skeleton-sports-team-logo,
[data-theme="dark"] .skeleton-sports-team-name,
[data-theme="dark"] .skeleton-sports-status-badge,
[data-theme="dark"] .skeleton-sports-score {
    background: linear-gradient(90deg, var(--description-color) 25%, var(--hover-color) 50%, var(--description-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

/* Responsive adjustments for sports skeleton */
@media (max-width: 768px) {
    .skeleton-sports-card .hover-buttons {
        top: 6px;
        right: 6px;
        gap: 4px;
    }

    .skeleton-sports-btn {
        width: 28px;
        height: 28px;
    }

    .skeleton-sports-icon {
        width: 12px;
        height: 12px;
    }
}

/* Reduced motion support for sports skeleton */
@media (prefers-reduced-motion: reduce) {
    .skeleton-sports-card,
    .skeleton-sports-image,
    .skeleton-sports-status,
    .skeleton-sports-btn,
    .skeleton-sports-icon,
    .skeleton-sports-avatar,
    .skeleton-sports-title,
    .skeleton-sports-channel-name,
    .skeleton-sports-views-date,
    .skeleton-sports-options-icon,
    .skeleton-sports-team-logo,
    .skeleton-sports-team-name,
    .skeleton-sports-status-badge,
    .skeleton-sports-score {
        animation: none;
    }

    .skeleton-sports-card {
        opacity: 0.5;
    }
}
/* Responsive Design - Maintain left-right layout on all screens */
@media (max-width: 768px) {
    .description-container {
        padding: 18px;
    }
    
    .description-content {
        grid-template-columns: 25% 1fr;
        gap: 16px;
    }
    
    .description-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .rating-container-top {
        margin-left: 16px;
    }
    
    .rating-circle {
        width: 60px;
        height: 60px;
    }
    
    .rating-number {
        font-size: 16px;
    }
    
    .rating-label {
        font-size: 10px;
    }
    
    .description-container.expanded {
        padding-bottom: 20px;
    }
    
    /* Show enhanced mobile fade overlay */
    .mobile-fade-overlay {
        display: block;
    }
    
    .poster-fade-overlay {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .description-container {
        padding: 16px;
    }
    
    .description-content {
        grid-template-columns: 30% 1fr;
        gap: 12px;
    }
    
    .overview-heading {
        font-size: 20px;
    }
    
    .rating-container-top {
        margin-left: 12px;
    }
    
    .rating-circle {
        width: 50px;
        height: 50px;
    }
    
    .rating-number {
        font-size: 14px;
    }
    
    .rating-label {
        font-size: 9px;
        margin-top: 4px;
    }
    
    .overview-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .companies-carousel {
        justify-content: center;
    }
    
    .explore-button {
        width: 100px;
        height: 36px;
        font-size: 12px;
    }
    
    .svgIcon {
        height: 20px;
    }
    
    .text-fade-overlay,
    .mobile-fade-overlay {
        height: 80px;
    }
    
    .poster-fade-overlay {
        height: 120px;
    }

    .channel-details span {
    font-size: 12px;
    }

    .subscribe-btn {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 360px) {
    .description-container {
        padding: 14px;
    }
    
    .description-content {
        grid-template-columns: 35% 1fr;
        gap: 10px;
    }
    
    .overview-heading {
        font-size: 18px;
    }
    
    .rating-container-top {
        margin-left: 8px;
    }
    
    .rating-circle {
        width: 45px;
        height: 45px;
    }
    
    .rating-number {
        font-size: 12px;
    }
    
    .rating-total {
        font-size: 10px;
    }
        
    .overview-text {
        font-size: 12px;
    }
    
    .genre-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .tagline {
        font-size: 12px;
    }
        
    .explore-button {
        width: 90px;
        height: 32px;
        font-size: 11px;
        gap: 6px;
    }
    
    .svgIcon {
        height: 18px;
    }    
}

/* Dark theme specific adjustments */
[data-theme="dark"] .rating-fill {
    stroke: var(--blue);
}

[data-theme="dark"] .company-item img,
[data-theme="dark"] .company-placeholder {
    background: var(--description-color);
}

[data-theme="dark"] .text-fade-overlay,
[data-theme="dark"] .mobile-fade-overlay {
    background: linear-gradient(transparent, var(--description-color));
}

[data-theme="dark"] .poster-fade-overlay {
    background: linear-gradient(transparent, var(--description-color));
}

/* Animation for smooth transitions */
.description-container * {
    transition: all 0.3s ease;
}

/* Loading state for initial description */
.description-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--secondary-text);
    box-sizing: border-box;
}

/* Accessibility improvements */
.explore-button:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.rating-circle:focus-within {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Print styles */
@media print {
    .description-container {
        box-shadow: none;
        border: 1px solid #000;
        overflow: visible;
    }
    
    .show-more-btn,
    .explore-button {
        display: none;
    }
    
    .expanded-content {
        max-height: none;
        opacity: 1;
    }
    
    .text-fade-overlay,
    .mobile-fade-overlay,
    .poster-fade-overlay {
        display: none;
    }
    
    .poster-wrapper {
        height: auto;
    }
    
    .movie-poster {
        object-fit: contain;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .genre-tag {
        border: 1px solid var(--text-color);
    }
    
    .rating-bg {
        stroke-width: 3;
    }
    
    .rating-fill {
        stroke-width: 3;
    }
}

/* Comments Section */
.comments-section {
    padding: 24px 0 0 0;
}

.comments-header {
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    gap: 16px;
    margin-top: 5px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.comment-send-btn {
    background: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--secondary-text);
    flex-shrink: 0;
}

.comment-send-btn:not(:disabled):hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.comment-send-btn.has-text {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.comment-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--hover-color);
    color: var(--secondary-text);
    border-color: var(--border-color);
}

.comment-form img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-input-container {
    flex: 1;
}

.comment-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
}

.comment-input:focus {
    outline: none;
    border-bottom-color: #1c62b9;
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 13px;
    font-weight: 500;
}

.comment-date {
    color: var(--secondary-text);
    font-size: 12px;
}

.comment-text {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comment-actions button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

.comment-actions button:hover {
    background-color: var(--hover-color);
}

.comment-actions button i {
    font-size: 18px;
}

.comment-actions button span {
    font-size: 14px;
}

/* Related Videos */
.related-videos {
    padding: 0px 24px;
}

.related-video {
    padding: 12px 0;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.related-thumbnail {
    width: 168px;
    position: relative;
}

.related-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    object-fit: cover;
}

.related-info {
    flex: 1;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    color: var(--secondary-text);
    font-size: 12px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.ringing {
    animation: ring 0.3s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        scrollbar-width: none;
    }

    .modal::-webkit-scrollbar {
        display: none;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .action-buttons {
        gap: 7px;
    }
}

/* Loaders */
.suggestion-skeleton {
    padding: 8px 0;
}

.skeleton-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
}

.skeleton-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-poster {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-action {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--hover-color) 25%, var(--border-color) 50%, var(--hover-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-text-medium {
    width: 75%;
}

.skeleton-text-long {
    width: 90%;
}

.skeleton-text-year {
    width: 40px;
    height: 14px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Eye Animation Loader */
.suggestion-item.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.no-results-text {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.loader {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card-background, #fff);
    border: 3px solid var(--border-color, #131a1d);
    overflow: hidden;
    box-sizing: border-box;
    display: inline-block;
    margin: 0 2px;
}

.loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: -50%;
    width: 100%;
    height: 100%;
    background: var(--hover-color, #263238);
    z-index: 5;
    border-bottom: 3px solid var(--border-color, #131a1d);
    box-sizing: border-box;
    animation: eyeShade 3s infinite;
}

.loader::before {
    content: '';
    position: absolute;
    left: 7px;
    bottom: 5px;
    width: 10px;
    z-index: 2;
    height: 10px;
    background: #111;
    border-radius: 50%;
    animation: eyeMove 3s infinite;
}

@keyframes eyeShade {
    0% {
        transform: translateY(0)
    }
    20% {
        transform: translateY(2px)
    }
    40%, 50% {
        transform: translateY(-2px)
    }
    60% {
        transform: translateY(-3px)
    }
    75% {
        transform: translateY(2px)
    }
    100% {
        transform: translateY(3px)
    }
}

@keyframes eyeMove {
    0% {
        transform: translate(0, 0)
    }
    20% {
        transform: translate(0px, 2px)
    }
    40%, 50% {
        transform: translate(0px, -2px)
    }
    60% {
        transform: translate(-3px, -2px)
    }
    75% {
        transform: translate(-6px, 2px)
    }
    100% {
        transform: translate(0, 3px)
    }
}

/* Animated Clock Button integrated into text */
.suggestion-item.no-history {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: transparent;
}

.history-text {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 1px;
}

.circle-button {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--card-background-dark, #1d1d29), var(--card-background, #27283b));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0px 5px 10px rgba(0, 0, 0, 0.5),
        inset 0px 2px 5px rgba(255, 255, 255, 0.1);
    transition:
        transform 0.4s ease,
        box-shadow 0.3s ease,
        background 0.5s ease;
    overflow: hidden;
    margin: 0 2px;
}

.circle-button:hover {
    transform: scale(1.2);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);
    background: linear-gradient(145deg, var(--hover-color, #2e3b4a), var(--card-background-dark, #1c2430));
}

.icon {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color, #00d4ff);
    transition:
        transform 0.5s ease-in-out,
        stroke-dasharray 0.6s ease-in-out;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: strokeAnimate 2s linear infinite;
}

.circle-button:hover .icon {
    transform: rotate(360deg);
    stroke-dashoffset: 0;
    animation: none;
}

.circle-button:after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.circle-button:hover:after {
    opacity: 1;
}

@keyframes strokeAnimate {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}


/* NSFW State */
.nsfw-state {
  display: inline-block;
  font-weight: bold;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-up-out {
  transform: translateY(-10px);
  opacity: 0;
}

.slide-down-out {
  transform: translateY(10px);
  opacity: 0;
}

.slide-up-in {
  transform: translateY(-10px);
  opacity: 0;
  animation: slide-up-in 0.3s ease forwards;
}

.slide-down-in {
  transform: translateY(10px);
  opacity: 0;
  animation: slide-down-in 0.3s ease forwards;
}

@keyframes slide-up-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-down-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Authentication Modal Styles - Redesigned */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease-out;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

[data-theme="dark"] .auth-modal-content {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.auth-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--secondary-text);
}

.auth-close-btn:hover {
    background: var(--hover-color);
    color: var(--text-color);
    transform: scale(1.05);
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.auth-form.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.4;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(92, 153, 232, 0.1);
}

.form-group input::placeholder {
    color: var(--secondary-text);
    opacity: 0.8;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    margin-top: 12px; /* Account for label */
}

.form-group:focus-within .input-icon {
    color: var(--blue);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
    margin-top: 12px; /* Account for label */
}

.password-toggle:hover {
    color: var(--blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color);
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--blue);
    border-color: var(--blue);
}

.checkbox-container input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password,
.terms-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.forgot-password:hover,
.terms-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px 16px;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.auth-btn:hover {
    background: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 153, 232, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn.loading {
    pointer-events: none;
}

.auth-btn.loading .btn-text {
    opacity: 0;
}

.auth-btn.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-loader .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.auth-divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--background-color);
    padding: 0 16px;
    color: var(--secondary-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.auth-switch {
    text-align: center;
    padding-top: 8px;
}

.auth-switch p {
    color: var(--secondary-text);
    font-size: 14px;
    margin: 0;
}

.auth-switch a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Profile Upload Styles */
.profile-upload {
    margin-bottom: 0px;
}

.file-upload-container {
    display: flex;
    justify-content: center;
}

.file-upload-container input[type="file"] {
    display: none;
}

.file-upload-display {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
    background: var(--hover-color);
}

.file-upload-display:hover {
    transform: scale(1.05);
    border-color: var(--blue);
}

.file-upload-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    color: white;
    font-size: 11px;
    font-weight: 500;
}

.file-upload-display:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 18px;
    margin-bottom: 4px;
}

/* Success/Error Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    border: 1px solid;
}

.auth-message.success {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

[data-theme="dark"] .auth-message.success {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.4);
}

.auth-message.error {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

[data-theme="dark"] .auth-message.error {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Help Terminal Modal */
.help-terminal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.help-terminal-container {
    width: 600px;
    max-width: 90vw;
    height: 400px;
    max-height: 80vh;
    font-family: "Fira Code", monospace;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(33, 33, 33, 0.95);
    animation: terminalFadeIn 0.3s ease-out;
}

@keyframes terminalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal_toolbar {
    display: flex;
    height: 30px;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    justify-content: space-between;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.butt {
    display: flex;
    align-items: center;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-right: 5px;
    font-size: 8px;
    height: 12px;
    width: 12px;
    box-sizing: border-box;
    border: none;
    border-radius: 100%;
    background: radial-gradient(circle at 30% 30%, #6c6c6c, #3b3b3b);
    text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
    box-shadow:
        0px 0px 1px 0px #41403a,
        0px 1px 1px 0px #474642;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.1);
}

.btn:focus {
    outline: none;
}

.btn-red {
    background: radial-gradient(circle at 30% 30%, #ff5f56, #bf2e2e);
}

.btn-yellow {
    background: radial-gradient(circle at 30% 30%, #ffbd2e, #b4820e);
}

.btn-green {
    background: radial-gradient(circle at 30% 30%, #27c93f, #199f2c);
}

.add_tab {
    border: 1px solid #fff;
    color: #fff;
    padding: 0 6px;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.add_tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user {
    color: #d5d0ce;
    margin-left: 6px;
    font-size: 14px;
    line-height: 15px;
}

.terminal_body {
    background: rgba(0, 0, 0, 0.4);
    height: calc(100% - 30px);
    padding-top: 8px;
    margin-top: -1px;
    font-size: 13px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.terminal_body::-webkit-scrollbar {
    width: 6px;
}

.terminal_body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal_body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.terminal_output {
    flex: 1;
    padding: 0 4px;
    overflow-y: auto;
    min-height: 0;
}

.terminal_input_line {
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 2px;
    position: relative;
}

.terminal_input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: "Fira Code", monospace;
    font-size: 13px;
    outline: none;
    padding: 0;
    margin: 0;
    line-height: 1.4;
    min-width: 1px;
    white-space: pre;
}

.terminal_input:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.terminal_cursor {
    display: inline-block;
    height: 14px;
    width: 8px;
    background: #ffffff;
    animation: curbl 800ms steps(2) infinite;
    border-radius: 1px;
    position: relative;
    top: 1px;
    vertical-align: baseline;
}

/* Hide cursor when input has content */
.terminal_input:not(:empty) .terminal_cursor {
    display: none;
}

.terminal_promt span {
    margin-left: 4px;
}

.terminal_user {
    color: #00ffae;
    text-shadow: 0 0 4px #00ffae;
}

.terminal_location {
    color: #3d9df6;
    text-shadow: 0 0 4px #3d9df6;
}

.terminal_bling {
    color: #ffffff;
    text-shadow: 0 0 3px #ffffff;
}

.terminal_bling::first-letter {
    color: rgb(0, 255, 174);
    text-shadow: rgb(0, 255, 174) 0px 0px 4px;
}



@keyframes curbl {
    0%,
    49% {
        background: #ffffff;
    }
    60%,
    99% {
        background: transparent;
    }
    100% {
        background: #ffffff;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        padding: 28px 24px;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .form-group input {
        padding: 12px 40px 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .input-icon,
    .password-toggle {
        right: 14px;
        font-size: 14px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .file-upload-display {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        padding: 24px 20px;
        width: 98%;
        margin: 16px;
    }
    
    .auth-header {
        margin-bottom: 28px;
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .auth-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .auth-close-btn {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
}

/* Focus states for accessibility */
.auth-close-btn:focus,
.auth-btn:focus,
.checkbox-container:focus-within,
.file-upload-display:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.form-group input:focus {
    outline: none; /* Already handled by box-shadow */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auth-modal-content {
        border: 2px solid var(--text-color);
    }
    
    .form-group input {
        border: 2px solid var(--border-color);
    }
    
    .checkmark {
        border: 2px solid var(--text-color);
    }
    
    .auth-btn {
        border: 2px solid var(--blue);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .auth-modal,
    .auth-modal-content,
    .auth-form,
    .form-group input,
    .auth-btn,
    .file-upload-display,
    .upload-overlay,
    .auth-message,
    .auth-close-btn {
        animation: none;
        transition: none;
    }
    
    .btn-loader .spinner {
        animation: none;
    }
    
    .auth-btn:hover,
    .auth-close-btn:hover,
    .file-upload-display:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .auth-modal {
        display: none !important;
    }
}
/* Logout Modal Styles */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logout-modal-container {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logout-modal-overlay.active .logout-modal-container {
    transform: scale(1) translateY(0);
}

.logout-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.logout-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.logout-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    transition: all 0.2s ease;
}

.logout-modal-close:hover {
    background: var(--hover-color);
    color: var(--text-color);
}

.logout-modal-body {
    padding: 24px;
    text-align: center;
}

.logout-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.logout-modal-body p {
    font-size: 16px;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.logout-subtitle {
    font-size: 14px;
    color: var(--secondary-text);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.logout-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px 24px;
    justify-content: flex-end;
}

.logout-cancel-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.logout-cancel-btn:hover {
    background: var(--hover-color);
    border-color: var(--secondary-text);
}

.logout-confirm-btn {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.logout-confirm-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.logout-confirm-btn:active {
    transform: translateY(0);
}

.logout-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.logout-confirm-btn i {
    font-size: 16px;
}

/* Dark theme adjustments */
[data-theme="dark"] .logout-modal-container {
    background: var(--background-color);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .logout-icon {
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .logout-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .logout-modal-header {
        padding: 20px 20px 12px 20px;
    }
    
    .logout-modal-header h3 {
        font-size: 18px;
    }
    
    .logout-modal-body {
        padding: 20px;
    }
    
    .logout-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .logout-modal-body p {
        font-size: 15px;
    }
    
    .logout-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .logout-modal-actions {
        padding: 12px 20px 20px 20px;
        flex-direction: column-reverse;
    }
    
    .logout-cancel-btn,
    .logout-confirm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for smooth entrance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .logout-modal-overlay,
    .logout-modal-container {
        transition: none;
    }
    
    .logout-modal-overlay.active .logout-modal-container {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .logout-modal-container {
        border: 2px solid var(--text-color);
    }
    
    .logout-cancel-btn {
        border: 2px solid var(--text-color);
    }
    
    .logout-confirm-btn {
        border: 2px solid #ff6b6b;
    }
}

/* Focus management for accessibility */
.logout-modal-close:focus,
.logout-cancel-btn:focus,
.logout-confirm-btn:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Loading state for confirm button */
.logout-confirm-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dropper Styles */
@keyframes droppedItemDisappear {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.7;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Dropped Item Modal Styles */
.dropped-item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1; /* Changed from 0 to 1 since we're animating the container */
}

.dropped-item-container {
    background: var(--background-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    /* Initial state for animation */
    opacity: 0;
    transform: scale(0.8);
}

.dropped-item-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.neon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: neonGlow 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.dropped-item-large {
    width: 180px;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    animation: itemFloat 2s ease-in-out infinite;
}

.item-name {
    font-family: "VT323";
    font-size: 50px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, 
        var(--text-color) 25%, 
        rgba(255, 255, 255, 0.3) 50%, 
        var(--text-color) 75%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s infinite;
}

/* Dark theme shimmer adjustment */
[data-theme="dark"] .item-name {
    background: linear-gradient(90deg, 
        var(--text-color) 25%, 
        rgba(255, 255, 255, 0.4) 50%, 
        var(--text-color) 75%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s infinite;
}

@keyframes textShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .item-name {
        animation: none;
        background: var(--text-color);
        -webkit-text-fill-color: var(--text-color);
        opacity: 0.9;
    }
}

.fun-fact {
    font-size: 20px;
    color: var(--secondary-text);
    background-color: var(--description-color);
    line-height: 0.8;
    margin: 0;
    max-width: 400px;
    font-family: "VT323";
    padding: 15px;
    border-radius: 10px;
}

.watch-video-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.watch-video-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.watch-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    background: linear-gradient(45deg, #c0392b, #a93226);
}

.watch-video-btn:hover::before {
    left: 100%;
}

.watch-video-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

.close-container-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-container-btn:hover {
    background: var(--hover-color);
    color: var(--text-color);
}

@keyframes neonGlow {

    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    }

    25% {
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
    }

    50% {
        background-position: 100% 100%;
        box-shadow: 0 0 30px rgba(69, 183, 209, 0.5);
    }

    75% {
        background-position: 0% 100%;
        box-shadow: 0 0 30px rgba(150, 206, 180, 0.5);
    }
}

@keyframes itemFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Updated animations to target container only */
@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes containerFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Animation classes for the container */
.dropped-item-container.fade-in {
    animation: containerFadeIn 0.3s ease-out forwards;
}

.dropped-item-container.fade-out {
    animation: containerFadeOut 0.3s ease-out forwards;
}

/* Responsive design for dropped item modal */
@media (max-width: 768px) {
    .dropped-item-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .neon-circle {
        width: 120px;
        height: 120px;
    }

    .dropped-item-large {
        width: 150px;
        height: 150px;
    }

    .item-name {
        font-size: 30px;
    }

    .watch-video-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Langauge Selector */
.lang-text {
    display: inline-block;
    position: relative;
}

/* Slide animations */
.slide-in-top {
    animation: slideInTop 0.5s forwards;
}

.slide-out-bottom {
    animation: slideOutBottom 0.5s forwards;
}

/* Keyframes */
@keyframes slideInTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutBottom {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Season/Episode UI */
#season-episode-ui {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  margin: 10px 20px;
}

/* Buttons */
.se-ui-btn {
  padding: 10px 18px;
  background: var(--dropdown-btn);
  color: #fff;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.se-arrow {
    transition: transform 0.25s ease;
}

.se-arrow.open {
    transform: rotate(180deg);
}

/* Dropdown */
.se-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(10px);
  width: 576px;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 10px;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  padding: 6px;
}

.se-dropdown::-webkit-scrollbar {
  width: 4px;
}

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

/* Item row */
.se-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background .12s;
}

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

.se-item:hover {
  background: var(--hover-color);
}

/* Image */
.se-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--dropdown-bg);
}

/* Text area */
.se-item .meta {
  flex: 1;
}

.se-item .meta .title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-color);
}

.se-item .meta .sub {
  font-size: 12px;
  color: var(--secondary-text);
  opacity: 0.85;
  margin-bottom: 4px;
}

.se-item .meta .desc {
  font-size: 12px;
  color: var(--secondary-text);
  opacity: 0.9;
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Small helper for episode label */
.se-item .badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--backdrop-bg);
  color: var(--secondary-text);
  align-self: start;
}

/* ===================================================================
   MOBILE RESPONSIVE STYLES FOR SERIES DROPDOWN
   Triggered for devices <= 768px
===================================================================*/
@media (max-width: 768px) {

  /* Main container spacing */
  #season-episode-ui {
    flex-wrap: wrap;
    margin: 10px;
    gap: 8px;
  }

  /* Buttons scale down */
  .se-ui-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 4px;
  }

  /* Dropdown container adapts to screen width */
  .se-dropdown {
    width: 100%;
    left: 0 !important;
    max-height: 60vh;
    top: 40px;
  }

  /* Dropdown items stack more compact */
  .se-item {
    gap: 8px;
    padding: 6px;
  }

  /* Reduce image size */
  .se-item img {
    width: 90px;
    height: 65px;
    border-radius: 5px;
  }

  /* Text adjustments */
  .se-item .meta .title {
    font-size: 13px;
  }

  .se-item .meta .sub,
  .se-item .meta .desc {
    font-size: 11px;
    max-height: 36px;
  }

  .se-item .badge {
    font-size: 10px;
    padding: 2px 5px;
  }
}

/* Network Footer - YouTube Style */
.network-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hover-color);
    border-radius: 8px;
    border-top: 1px solid var(--border-color);
    z-index: 10000;
    display: none;
    transform: translateY(100%);
    animation: slideUpFooter 0.3s ease-out forwards;
    font-size: 12px;
    color: var(--text-color);
    text-align: center;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.network-footer.success {
    background: #e8f5e8;
    color: #2e7d32;
    border-top-color: #4caf50;
}

.network-footer.warning {
    background: #fef3c7;
    color: #92400e;
    border-top-color: #f59e0b;
}

.network-footer.error {
    background: #fca5a5;
    color: #dc2626;
    border-top-color: #ef4444;
}

.network-footer.info {
    background: var(--hover-color);
    color: var(--text-color);
}

[data-theme="dark"] .network-footer.success {
    background: #1b5e20;
    color: #81c784;
}

[data-theme="dark"] .network-footer.warning {
    background: #451a03;
    color: #fbbf24;
}

[data-theme="dark"] .network-footer.error {
    background: #450a0a;
    color: #fca5a5;
}

[data-theme="dark"] .network-footer.info {
    background: var(--hover-color);
    color: var(--text-color);
}

/* Animation for footer */
@keyframes slideUpFooter {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .network-footer {
        font-size: 10px;
    }
}

/* Network status indicator (optional) */
#network-status {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    z-index: 1000;
}

#network-status.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

#network-status.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

body.offline {
    opacity: 0.95;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .network-footer {
        animation: none;
    }
}

/* Share Container Styles */
.share-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.share-container.active {
    display: flex;
}

.share-content {
    background: var(--background-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: shareSlideIn 0.3s ease-out;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.share-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.share-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--secondary-text);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-close-btn:hover {
    color: var(--text-color);
}

.share-movie-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--hover-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.share-movie-info img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.share-movie-details {
    flex: 1;
    min-width: 0;
}

.share-movie-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-movie-details p {
    font-size: 14px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-link-section {
    margin-bottom: 24px;
}

.share-link-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

#share-link {
    flex: 1;
    padding: 12px 16px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--secondary-text);
    font-size: 14px;
    outline: none;
    font-family: monospace;
}

#share-link:focus {
    border-color: var(--blue);
}

.copy-link-btn {
    padding: 12px 16px;
    background: none;
    color: var(--secondary-text);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.copy-link-btn:hover {
    transform: translateY(-1px);
}

.copy-link-btn:active {
    transform: translateY(0);
}

.copy-link-btn.copied {
    background: #4caf50;
}

.copy-link-btn.copied:hover {
    background: #45a049;
}

.social-platforms {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20c157, #0f7c6a);
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4e5bd5, #3d47b3);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: white;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0077b5, #0066a0);
}

.instagram-btn {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.instagram-btn:hover {
    background: linear-gradient(135deg, #d17e2a 0%, #c65a33 25%, #b82538 50%, #a91d5b 75%, #a0167d 100%);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #005885, #00426a);
}

.reddit-btn {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
}

.reddit-btn:hover {
    background: linear-gradient(135deg, #e63e00, #e55a2b);
}

/* Animations */
@keyframes shareSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile responsiveness for share container */
@media (max-width: 768px) {
    .share-content {
        padding: 20px;
        max-width: 95%;
        margin: 20px;
    }

    .share-header h3 {
        font-size: 20px;
    }

    .share-link-input-container {
        gap: 12px;
    }

    .copy-link-btn {
        justify-content: center;
    }

    .social-platforms {
        gap: 16px;
    }

    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .share-content {
        padding: 16px;
        margin: 10px;
    }

    .social-platforms {
        gap: 12px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* New comment fade-in animation */
.comment.new-comment {
    animation: fadeInNewComment 0.5s ease-out;
}

@keyframes fadeInNewComment {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
