/**
 * CDA TV Catalog - Streaming Platform Style
 * Modern, minimal, Apple-inspired design
 */

/* Reset and Base */
.cda-tv-streaming-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Default, will be overridden by Elementor control */
    max-height: 100%;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

.cda-tv-streaming-container * {
    box-sizing: border-box;
}

/* Reset link styles to prevent pink/purple visited colors */
.cda-tv-streaming-container a {
    color: inherit;
    text-decoration: none;
}

.cda-tv-streaming-container button:not(.cda-tv-btn-primary) {
    color: inherit;
    text-decoration: none;
}

.cda-tv-streaming-container a:visited {
    color: inherit;
}

.cda-tv-streaming-container button:visited:not(.cda-tv-btn-primary) {
    color: inherit;
}

.cda-tv-streaming-container a:active {
    color: inherit;
}

.cda-tv-streaming-container button:active:not(.cda-tv-btn-primary) {
    color: inherit;
}

/* Main Layout */
.cda-tv-streaming-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header - Fixed height, not overlapping */
.cda-tv-streaming-header {
    position: relative;
    min-height: 60px;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #141414; /* Default - will be overridden by Elementor */
    z-index: 100;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cda-tv-streaming-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, var(--streaming-fade-color, rgba(0,0,0,0.8)) 0%, transparent 100%);
    pointer-events: none;
}

/* Scrolled state removed - always use solid color */

/* Navigation */
.cda-tv-streaming-nav {
    display: flex;
    align-items: center;
}

/* Animation for menu items */
.cda-tv-streaming-menu-item {
    transition: color 0.3s ease;
}

/* Animation states */
.cda-tv-streaming-menu-item.animate-fadeIn {
    animation: fadeIn var(--animation-duration, 500ms) ease forwards;
}

.cda-tv-streaming-menu-item.animate-fadeInDown {
    animation: fadeInDown var(--animation-duration, 500ms) ease forwards;
}

.cda-tv-streaming-menu-item.animate-fadeInUp {
    animation: fadeInUp var(--animation-duration, 500ms) ease forwards;
}

.cda-tv-streaming-menu-item.animate-fadeInLeft {
    animation: fadeInLeft var(--animation-duration, 500ms) ease forwards;
}

.cda-tv-streaming-menu-item.animate-fadeInRight {
    animation: fadeInRight var(--animation-duration, 500ms) ease forwards;
}

.cda-tv-streaming-menu-item.animate-zoomIn {
    animation: zoomIn var(--animation-duration, 500ms) ease forwards;
}

.cda-tv-streaming-menu-item.animate-slideInDown {
    animation: slideInDown var(--animation-duration, 500ms) ease forwards;
}

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

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

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

@keyframes fadeInLeft {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from { 
        opacity: 0;
        transform: translateY(-100%);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial hidden state for animation */
.cda-tv-streaming-menu-item.animate-init {
    opacity: 0;
}

.cda-tv-streaming-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cda-tv-streaming-menu-item {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cda-tv-streaming-menu-item:hover,
.cda-tv-streaming-menu-item.active {
    color: #fff;
}

/* Browse Section */
.cda-tv-streaming-browse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 40px; /* Reduced from 100px */
    display: flex;
    flex-direction: column;
    scrollbar-gutter: stable;
}

.cda-tv-streaming-browse::-webkit-scrollbar {
    width: 8px;
}

.cda-tv-streaming-browse::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.cda-tv-streaming-browse::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.cda-tv-streaming-browse::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

    /* Content sections */
    .cda-tv-streaming-content > .cda-tv-streaming-section {
        padding: 40px 60px;
        min-height: auto;
    }

.cda-tv-streaming-section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

/* Categories grid */
.cda-tv-streaming-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cda-tv-streaming-category {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cda-tv-streaming-category:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.cda-tv-streaming-category h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fff;
}

.cda-tv-streaming-category-count {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

/* Hero Section */
.cda-tv-streaming-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cda-tv-streaming-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cda-tv-streaming-hero-bg img,
.cda-tv-streaming-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cda-tv-streaming-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.8) 80%,
        #000 100%);
}

.cda-tv-streaming-hero-content {
    position: absolute;
    bottom: 150px;
    left: 60px;
    max-width: 600px;
    z-index: 10;
}

.cda-tv-streaming-hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cda-tv-streaming-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.cda-tv-streaming-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.cda-tv-streaming-hero-meta span:not(:first-child)::before {
    content: '•';
    position: absolute;
    left: -13px;
    color: rgba(255,255,255,0.5);
}

/* Hero meta details container (desktop) */
.cda-tv-hero-meta-details {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.cda-tv-hero-meta-details span {
    position: relative;
}

/* Keep desktop bullets */
.cda-tv-hero-meta-details span:not(:first-child)::before {
    content: '•';
    position: absolute;
    left: -13px;
    color: rgba(255,255,255,0.5);
}

.cda-tv-streaming-hero-description {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.cda-tv-streaming-hero-actions {
    display: flex;
    gap: 15px;
}

.cda-tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-decoration: none;
    line-height: 1;
}

/* Ensure icons align properly with text */
.cda-tv-btn svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* Fix icons color to match text */
.cda-tv-btn svg {
    fill: currentColor;
}

/* For icons that use stroke (like + icon) */
.cda-tv-btn svg path[stroke] {
    stroke: currentColor;
}

.cda-tv-btn-primary {
    background: #fff;
    color: #000 !important; /* Important to override container button styles */
}

.cda-tv-btn-primary svg {
    fill: currentColor !important;
}

.cda-tv-btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.02);
    color: #000 !important;
}

.cda-tv-btn-primary:focus,
.cda-tv-btn-primary:active {
    background: rgba(255,255,255,0.8);
    color: #000 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.cda-tv-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cda-tv-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.cda-tv-btn-secondary:focus,
.cda-tv-btn-secondary:active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

/* Specific styles for share buttons to prevent pink/purple */
.cda-tv-share-video,
.cda-tv-share-format {
    color: #fff !important;
}

.cda-tv-share-video:hover,
.cda-tv-share-format:hover {
    background: rgba(255,255,255,0.3);
    color: #fff !important;
}

.cda-tv-share-video:focus,
.cda-tv-share-video:active,
.cda-tv-share-format:focus,
.cda-tv-share-format:active {
    background: rgba(255,255,255,0.25);
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

/* Home layout structure */
.cda-tv-streaming-browse.home-layout {
    overflow-y: auto;
    padding-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cda-tv-streaming-browse > .cda-tv-streaming-hero {
    flex-shrink: 0;
}

.cda-tv-streaming-browse > .cda-tv-streaming-rows {
    flex-shrink: 0;
}

/* Video info layout structure */
.cda-tv-streaming-browse.video-info-layout {
    overflow-y: auto;
    padding-bottom: 0;
}

.cda-tv-streaming-browse.video-info-layout > .cda-tv-video-info-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Content Rows */
.cda-tv-streaming-row {
    position: relative;
    padding: 0 60px;
    margin-bottom: 40px;
    z-index: 10;
}

.cda-tv-streaming-rows > .cda-tv-streaming-row:first-child {
    margin-top: 40px;
}

.cda-tv-streaming-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cda-tv-streaming-row-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.cda-tv-streaming-row-see-all {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cda-tv-streaming-row-see-all:hover {
    color: #fff;
}

/* Card Grid */
.cda-tv-streaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cda-tv-streaming-card {
    position: relative;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cda-tv-streaming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.cda-tv-streaming-card-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cda-tv-streaming-card-thumb:hover {
    opacity: 0.8;
}

.cda-tv-streaming-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cda-tv-streaming-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.cda-tv-streaming-card-thumb:hover .cda-tv-streaming-card-play {
    opacity: 1;
}

.cda-tv-streaming-card-play svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.cda-tv-streaming-card-content {
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cda-tv-streaming-card-content:hover {
    background: rgba(255,255,255,0.08);
}

.cda-tv-streaming-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cda-tv-streaming-card-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Player Overlay */
.cda-tv-streaming-player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000;
    display: none;
}

.cda-tv-streaming-player.active {
    display: block;
}

.cda-tv-streaming-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: default;
}

.cda-tv-streaming-player-video {
    width: 100%;
    height: 100%;
    background: #000;
}

/* mb.YTPlayer-style Overlay to completely block YouTube UI */
.cda-tv-streaming-player .cda-tv-youtube-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5; /* Same as mb.YTPlayer */
    pointer-events: none; /* Allow controls to work */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: flat;
    box-sizing: border-box;
}

/* Remove - this was the black square */

/* Gradient container for streaming player */
.cda-tv-streaming-player-video .cda-tv-video-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8; /* Below info (10) and controls (20) */
}

/* Top gradient to hide YouTube overlays */
.cda-tv-streaming-player-video .cda-tv-video-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%; /* Max 20% of player height */
    /* Da 0 a 50px: pieno; da 50px a 100%: sfuma a 0 */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0,
        rgba(0,0,0,1) min(50px, 100%),
        rgba(0,0,0,0) 100%
    );
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Show gradient when paused OR during initial load */
.cda-tv-streaming-player-container.is-paused .cda-tv-video-gradient::before,
.cda-tv-streaming-player-container.initial-load .cda-tv-video-gradient::before {
    opacity: 1;
}

/* Hide gradient when playing (unless initial load) */
.cda-tv-streaming-player-container:not(.is-paused):not(.initial-load) .cda-tv-video-gradient::before {
    opacity: 0;
}

/* Remove bottom-right gradient - not needed */

/* Custom player */
.cda-tv-streaming-player .cda-tv-player {
    width: 100%;
    height: 100%;
}

/* Video Detail Screen */
.cda-tv-streaming-video-detail {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    padding: 80px 60px;
    overflow-y: auto;
    z-index: 50;
}

/* Custom scrollbar for video detail */
.cda-tv-streaming-video-detail::-webkit-scrollbar {
    width: 8px;
}

.cda-tv-streaming-video-detail::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.cda-tv-streaming-video-detail::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.cda-tv-streaming-video-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.cda-tv-streaming-video-detail-content {
    max-width: 800px;
    margin-top: 20%;
}

.cda-tv-streaming-video-detail-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.cda-tv-streaming-video-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

.cda-tv-streaming-video-detail-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 20px;
    color: rgba(255,255,255,0.4);
}

.cda-tv-streaming-video-detail-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 600px;
}

.cda-tv-streaming-video-detail-actions {
    display: flex;
    gap: 20px;
}

.cda-tv-streaming-video-detail-actions button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-decoration: none;
}

/* Fix icons in detail buttons */
.cda-tv-streaming-video-detail-actions button svg {
    fill: currentColor;
    stroke: currentColor;
}

.cda-tv-streaming-video-detail-play {
    background: #fff;
    color: #000;
}

.cda-tv-streaming-video-detail-play:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.05);
    color: #000;
}

.cda-tv-streaming-video-detail-play:focus,
.cda-tv-streaming-video-detail-play:active {
    background: rgba(255,255,255,0.8);
    color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.cda-tv-streaming-video-detail-info {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.cda-tv-streaming-video-detail-info:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.cda-tv-streaming-video-detail-info:focus,
.cda-tv-streaming-video-detail-info:active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.cda-tv-streaming-player-back {
    position: absolute;
    top: 40px;
    left: 60px; /* Aligned with control bar padding */
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: auto;
    opacity: 0;
}

/* Show back button when controls visible */
.cda-tv-streaming-player-container.controls-visible .cda-tv-streaming-player-back {
    opacity: 1;
}

.cda-tv-streaming-player-back:hover {
    background: rgba(255,255,255,0.2);
}

.cda-tv-streaming-player-back:focus,
.cda-tv-streaming-player-back:active {
    background: rgba(255,255,255,0.15);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

/* Fix back button icon color */
.cda-tv-streaming-player-back svg {
    fill: white;
    stroke: white;
}

/* Netflix-style gradient that covers both info and controls */
.cda-tv-streaming-player-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.7) 20%, 
        rgba(0,0,0,0.3) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 10;
}

.cda-tv-streaming-player-info {
    position: absolute;
    bottom: 120px; /* Above control bar */
    left: 0;
    right: 0;
    padding: 0 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 30; /* Above control bar (20) and gradient (10) */
}

/* Hide controls by default */
.cda-tv-streaming-player-container .cda-tv-streaming-player-info,
.cda-tv-streaming-player-container .cda-tv-streaming-player-gradient {
    opacity: 0;
}

/* Show everything when controls-visible */
.cda-tv-streaming-player-container.controls-visible .cda-tv-streaming-player-info,
.cda-tv-streaming-player-container.controls-visible .cda-tv-streaming-player-gradient {
    opacity: 1;
}

/* Netflix-style control bar */
.cda-tv-streaming-player-container .cda-tv-catalog-control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 60px;
    background: transparent; /* No solid background, use gradient */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 20;
}

/* Control bar gradient */
.cda-tv-streaming-player-container .cda-tv-catalog-control-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px; /* Back to 120px as requested */
    background: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%,  /* More opaque */
        rgba(0,0,0,0.8) 30%,
        rgba(0,0,0,0.5) 60%,
        transparent 100%);
    z-index: -1;
    transition: height 0.3s ease;
    pointer-events: none;
}

/* Keep gradient at standard height always - no expansion */
.cda-tv-streaming-player-container .cda-tv-catalog-control-bar::before {
    height: 120px; /* Standard height for control area */
}

.cda-tv-streaming-player-container.controls-visible .cda-tv-catalog-control-bar,
.cda-tv-streaming-player-container.is-paused .cda-tv-catalog-control-bar {
    opacity: 1;
}

.cda-tv-streaming-player-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.cda-tv-streaming-player-meta {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.5;
    margin-top: 5px;
}

/* Empty State */
.cda-tv-streaming-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
}

/* Format Detail */
.cda-tv-streaming-format-detail {
    padding: 40px 60px;
}

.cda-tv-streaming-season {
    margin-bottom: 60px;
}

.cda-tv-streaming-season-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}

/* Section styling for consistency */
.cda-tv-streaming-section {
    padding: 40px 60px;
}

.cda-tv-streaming-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}

/* Episode Selector - Hidden for now */
.cda-tv-streaming-episodes {
    display: none; /* Hidden until implemented */
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 40px;
}

.cda-tv-streaming-episodes.active {
    display: block; /* Show when active */
    transform: translateX(0);
}

.cda-tv-streaming-episodes-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cda-tv-streaming-episodes-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cda-tv-streaming-season-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.cda-tv-streaming-season-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cda-tv-streaming-season-btn.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.cda-tv-streaming-episode-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cda-tv-streaming-episode {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cda-tv-streaming-episode:hover,
.cda-tv-streaming-episode.playing {
    background: rgba(255,255,255,0.1);
}

.cda-tv-streaming-episode-thumb {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.cda-tv-streaming-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cda-tv-streaming-episode-info {
    flex: 1;
}

.cda-tv-streaming-episode-number {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.cda-tv-streaming-episode-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cda-tv-streaming-episode-duration {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Suggestions */
.cda-tv-streaming-suggestions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 60px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cda-tv-streaming-suggestions.active {
    transform: translateY(0);
}

.cda-tv-streaming-suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cda-tv-streaming-suggestions-title {
    font-size: 28px;
    font-weight: 600;
}

.cda-tv-streaming-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Loading States */
.cda-tv-streaming-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cda-tv-streaming-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .cda-tv-streaming-header {
        padding: 0 40px;
    }
    
    .cda-tv-streaming-hero-content,
    .cda-tv-streaming-row {
        padding: 0 40px;
    }
    
    .cda-tv-streaming-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cda-tv-streaming-episodes {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .cda-tv-streaming-header {
        padding: 0 20px;
        height: 60px;
    }
    
    /* Removed - handled in portrait-specific styles */
    
    .cda-tv-streaming-menu {
        gap: 20px;
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .cda-tv-streaming-menu-item {
        font-size: 14px;
    }
    
    .cda-tv-streaming-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .cda-tv-streaming-hero-content {
        bottom: 80px;
        left: 20px;
        right: 20px;
        max-width: 100%;
    }
    
    .cda-tv-streaming-hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .cda-tv-streaming-hero-description {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .cda-tv-streaming-hero-actions {
        gap: 10px;
    }
    
    .cda-tv-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cda-tv-streaming-row {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .cda-tv-streaming-row-title {
        font-size: 20px;
    }
    
    .cda-tv-streaming-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .cda-tv-streaming-card-title {
        font-size: 14px;
    }
    
    .cda-tv-streaming-card-content {
        padding: 15px;
    }
    
    .cda-tv-streaming-episodes {
        width: 100%;
        padding: 20px;
    }
    
    .cda-tv-streaming-suggestions {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .cda-tv-streaming-menu {
        justify-content: space-between;
        width: 100%;
    }
    
    .cda-tv-streaming-menu-item {
        font-size: 13px;
    }
    
    .cda-tv-streaming-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cda-tv-streaming-hero-title {
        font-size: 24px;
    }
    
    .cda-tv-streaming-hero-meta {
        font-size: 12px;
    }
}

/* Mobile Portrait - Menu Video/Catalog Fix */
@media (max-width: 768px) and (orientation: portrait) {
    /* Fix header double height issue */
    .cda-tv-streaming-header {
        height: 60px;
        min-height: initial;
        flex-shrink: 0;
        padding: 0 10px; /* Reduce padding to 10px */
    }
    
    /* Fix browse container positioning */
    .cda-tv-streaming-content {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .cda-tv-streaming-browse {
        position: relative;
        top: auto;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 20px;
    }
    
    /* Sections padding to match home */
    .cda-tv-streaming-section {
        padding: 20px 20px; /* Uniform 20px margins */
    }
    
    /* Grid adjustments to match home cards */
    .cda-tv-streaming-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Ensure cards fill space properly */
    .cda-tv-streaming-card {
        width: 100%;
    }
    
    /* Section title adjustments */
    .cda-tv-streaming-section-title {
        font-size: 20px !important; /* Changed to 20px */
        margin-top: 10px !important; /* Added 10px top margin */
        margin-bottom: 30px !important; /* Changed to 30px */
        text-align: center; /* Center titles on mobile */
    }
    
    /* Keep menu as it was - no changes */
    
    /* Categories styling on mobile */
    .cda-tv-streaming-category {
        padding: 10px !important;
    }
    
    .cda-tv-streaming-category h3 {
        font-size: 16px !important;
        margin-bottom: 0 !important;
    }
    
    .cda-tv-streaming-category-count {
        font-size: 14px !important;
    }
}

/* Mobile Portrait Optimization - Home Hero */
@media (max-width: 768px) and (orientation: portrait) {
    .cda-tv-streaming-hero-content {
        text-align: center;
        left: 20px; /* Same as mobile general */
        right: 20px; /* Same as mobile general */
        bottom: 50%;
        transform: translateY(50%);
        max-width: calc(100% - 40px);
    }
    
    .cda-tv-streaming-hero-title {
        font-size: 32px; /* Slightly larger for mobile */
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    /* Format name as separate line */
    .cda-tv-streaming-hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 16px;
    }
    
    /* Format name - prominent */
    .cda-tv-hero-format {
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        margin-bottom: 8px;
        display: block;
    }
    
    /* Details container for season/episode/duration */
    .cda-tv-hero-meta-details {
        display: flex;
        align-items: center;
        gap: 0; /* Remove gap to allow bullets */
        font-size: 14px;
        color: rgba(255,255,255,0.8);
    }
    
    /* Override desktop positioning */
    .cda-tv-hero-meta-details span {
        position: static !important;
    }
    
    /* Add bullets between items in details */
    .cda-tv-hero-meta-details {
        gap: 0 !important; /* Force 0 gap */
    }
    
    .cda-tv-hero-meta-details span:not(:first-child)::before {
        content: '•';
        margin: 0 6px; /* More compact spacing */
        color: rgba(255,255,255,0.5);
        position: static !important;
        display: inline !important;
        left: auto !important;
    }
    
    /* For videos without format, show only duration centered */
    .cda-tv-streaming-hero-meta > span:only-child {
        font-size: 14px;
        color: rgba(255,255,255,0.8);
    }
    
    .cda-tv-streaming-hero-description {
        margin-bottom: 20px;
        font-size: 12px; /* SMALLER text */
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }
    
    .cda-tv-streaming-hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cda-tv-streaming-hero-actions .cda-tv-btn {
        min-width: 140px;
    }
    
    /* Align card margins with hero margins */
    .cda-tv-streaming-row {
        padding: 0 20px; /* Same as mobile general */
    }
}

/* Mobile Portrait - Video Info and Format Pages */
@media (max-width: 768px) and (orientation: portrait) {
    /* Video Info Page - Copy exact home styles */
    .cda-tv-video-info-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    /* Hero content - exact same as home */
    .cda-tv-video-info-hero-content {
        text-align: center;
        left: 40px; /* Increased to 40px */
        right: 40px; /* Increased to 40px */
        bottom: 50%;
        transform: translateY(50%);
        max-width: calc(100% - 80px);
        position: absolute;
        z-index: 10;
        padding: 20px; /* 20px padding */
        box-sizing: border-box;
    }
    
    /* Title - exact same as home */
    .cda-tv-video-info-hero-content h1 {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -1px;
        margin-bottom: 12px;
        line-height: 1.2;
        color: #fff;
    }
    
    /* Meta container - same structure as home */
    .cda-tv-video-info-meta {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 16px;
    }
    
    /* Format name - prominent like home */
    .cda-tv-video-info-format {
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        margin-bottom: 8px;
        display: block;
    }
    
    /* Details container - same as home */
    .cda-tv-video-info-meta-details {
        display: flex;
        align-items: center;
        gap: 0px !important; /* Force 0 gap */
        font-size: 14px;
        color: rgba(255,255,255,0.8);
    }
    
    /* Remove desktop positioning */
    .cda-tv-video-info-meta-details span {
        position: static !important;
    }
    
    /* Bullets between items - same as home */
    .cda-tv-video-info-meta-details span:not(:first-child)::before {
        content: '•';
        margin: 0 6px; /* More compact like home */
        color: rgba(255,255,255,0.5);
        position: static !important;
        display: inline !important;
        left: auto !important;
    }
    
    /* Synopsis - SMALLER font like home description */
    .cda-tv-video-info-synopsis {
        margin-bottom: 20px;
        font-size: 12px !important; /* SMALLER like home */
        line-height: 1.4;
        color: rgba(255,255,255,0.9);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }
    
    /* Fix button font size - match home */
    .cda-tv-video-info-actions .cda-tv-btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    /* Actions container mobile - match home hero exactly */
    .cda-tv-video-info-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%; /* Ensure full width for proper centering */
        text-align: center; /* Fallback centering */
    }
    
    /* Video info page - already set by parent container */
    
    /* First button (Guarda ora) on its own */
    .cda-tv-video-info-page .cda-tv-video-info-actions > .cda-tv-btn:first-child {
        width: auto !important; /* Not full width */
        min-width: 160px; /* Reduced for better mobile fit */
        max-width: 240px;
        margin: 0 auto; /* Center the button */
        display: block; /* Ensure block for centering */
    }
    
    /* Container for second row buttons */
    .cda-tv-video-info-page .cda-tv-video-info-actions-row2 {
        display: flex;
        gap: 10px;
        justify-content: center;
        width: 100%; /* Full width to center properly */
    }
    
    /* Second row buttons - like home hero */
    .cda-tv-video-info-page .cda-tv-video-info-actions-row2 .cda-tv-btn {
        min-width: 120px; /* Slightly smaller for mobile */
        max-width: 140px;
    }
    
    /* Format page - buttons NOT full width */
    .cda-tv-streaming-format-detail .cda-tv-video-info-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center; /* Center buttons */
        width: 100%;
    }
    
    .cda-tv-streaming-format-detail .cda-tv-video-info-actions .cda-tv-btn {
        width: auto; /* Not full width! */
        min-width: 160px; /* Reduced for better fit */
        max-width: 240px; /* Limit width */
    }
    
    /* Remove margin-top from buttons - gap handles spacing */
    .cda-tv-video-info-actions .cda-tv-btn + .cda-tv-btn {
        margin-top: 0; /* Gap handles spacing */
    }
    
    /* All buttons - match home sizing exactly */
    .cda-tv-video-info-actions .cda-tv-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px; /* Slightly smaller gap for mobile */
        font-size: 14px !important;
        padding: 10px 20px !important;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    /* Proper SVG size on mobile */
    .cda-tv-video-info-actions .cda-tv-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Home hero actions have different sizes */
    .cda-tv-streaming-hero-actions .cda-tv-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Single duration case */
    .cda-tv-video-info-meta > span:only-child {
        font-size: 14px;
        color: rgba(255,255,255,0.8);
    }
    
    /* Sections in video info page - correct padding */
    .cda-tv-video-info-content {
        padding: 20px !important; /* 20px all sides */
    }
    
    /* Format detail same padding */
    .cda-tv-streaming-format-detail {
        padding: 0 10px !important; /* Keep as before */
    }
    
    .cda-tv-video-info-content .cda-tv-streaming-section,
    .cda-tv-streaming-format-detail .cda-tv-streaming-section {
        padding: 10px 0 20px 0; /* Top 10px, bottom 20px */
    }
    
    /* Match home row margins exactly */
    .cda-tv-video-info-content .cda-tv-streaming-row,
    .cda-tv-streaming-format-detail .cda-tv-streaming-row {
        padding: 0 !important; /* No padding - content handles it */
        margin-bottom: 30px !important; /* Match home */
    }
    
    /* Section titles in video/format pages */
    .cda-tv-video-info-content .cda-tv-streaming-section-title,
    .cda-tv-streaming-format-detail .cda-tv-streaming-section-title {
        padding: 0;
        text-align: center;
        font-size: 20px !important; /* Changed to 20px */
        margin-top: 10px !important; /* Only top margin for these sections */
        margin-bottom: 30px !important; /* 30px as requested */
    }
    
    /* Cards in video info and format pages */
    .cda-tv-video-info-content .cda-tv-streaming-grid,
    .cda-tv-streaming-format-detail .cda-tv-streaming-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Fix for mobile general media query conflicts */
@media (max-width: 768px) {
    .cda-tv-video-info-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .cda-tv-video-info-hero-content {
        bottom: 80px;
        left: 20px;
        right: 20px;
        max-width: 100%;
    }
    
    .cda-tv-video-info-hero-content h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .cda-tv-video-info-synopsis {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Remove conflicting mobile styles */
    .cda-tv-video-info-actions {
        /* Styles already set in portrait media query */
    }
}

/* Mobile Portrait - Override general mobile styles for video info and format */
@media (max-width: 768px) and (orientation: portrait) {
    /* Override general mobile positioning - higher specificity */
    .cda-tv-video-info-hero-content {
        bottom: 50% !important;
        transform: translateY(50%) !important;
        left: 40px !important; /* Increased to 40px */
        right: 40px !important; /* Increased to 40px */
        text-align: center !important;
    }
    
    /* Player controls - Align chevron left with controls */
    .cda-tv-streaming-player-back {
        left: 20px !important; /* Same as control bar padding */
        top: 30px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Player info - Move to top right */
    .cda-tv-streaming-player-info {
        top: 30px !important;
        right: 20px !important; /* Same as control bar padding */
        left: auto !important;
        text-align: right !important; /* Right align text */
        max-width: 60%; /* Don't overlap with chevron */
        bottom: auto !important;
        padding: 0 !important;
    }
    
    /* Override font sizes to match home */
    .cda-tv-video-info-hero-content h1 {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    
    /* Force center alignment */
    .cda-tv-video-info-synopsis {
        text-align: center !important;
    }
    
    /* Format pages - same styles */
    .cda-tv-streaming-format-detail .cda-tv-video-info-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .cda-tv-streaming-format-detail .cda-tv-video-info-hero-content {
        text-align: center;
        left: 40px !important; /* Increased to 40px */
        right: 40px !important; /* Increased to 40px */
        bottom: 50% !important;
        transform: translateY(50%) !important;
        max-width: calc(100% - 80px);
        padding: 20px; /* 20px padding */
        box-sizing: border-box;
    }
    
    .cda-tv-streaming-format-detail .cda-tv-video-info-hero-content h1 {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    
    .cda-tv-streaming-format-detail .cda-tv-video-info-synopsis {
        text-align: center !important;
    }
}

/* Height responsiveness */
@media (max-height: 600px) {
    .cda-tv-streaming-header {
        height: 50px;
    }
    
    /* Removed - handled in portrait-specific styles */
    
    .cda-tv-streaming-hero {
        height: 70vh;
        min-height: 200px;
    }
}

/* Hide YouTube pause overlay when paused */
.cda-tv-streaming-player-container.is-paused .ytp-pause-overlay {
    display: none !important;
    visibility: hidden !important;
}

/* Alternative approach using higher z-index for our gradient */
.cda-tv-streaming-player-container.is-paused .cda-tv-video-gradient {
    z-index: 9 !important; /* Still below info (10) and controls (20) */
}

/* Video Info Page */
.cda-tv-video-info-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.cda-tv-video-info-hero {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0;
    flex-shrink: 0;
}

.cda-tv-video-info-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 50%, rgba(0,0,0,0.3));
}

.cda-tv-video-info-hero-content {
    position: absolute;
    bottom: 150px;
    left: 60px;
    max-width: 600px;
    z-index: 10;
}

.cda-tv-video-info-hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 20px 0;
}

.cda-tv-video-info-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.cda-tv-video-info-meta span {
    position: relative;
}

.cda-tv-video-info-meta span:not(:first-child)::before {
    content: '•';
    position: absolute;
    left: -13px;
    color: rgba(255,255,255,0.5);
}

/* Format name desktop */
.cda-tv-video-info-format {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

/* Meta details container desktop */
.cda-tv-video-info-meta-details {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.cda-tv-video-info-meta-details span {
    position: relative;
}

.cda-tv-video-info-meta-details span:not(:first-child)::before {
    content: '•';
    position: absolute;
    left: -13px;
    color: rgba(255,255,255,0.5);
}

.cda-tv-video-info-synopsis {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin: 0 0 30px 0;
}

.cda-tv-video-info-actions {
    display: flex;
    gap: 20px;
}

.cda-tv-video-info-actions .cda-tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
}

.cda-tv-video-info-content {
    padding: 60px 40px;
    background: rgba(0,0,0,0.9); /* Will use fade color via CSS variable */
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

/* Info Modal */
.cda-tv-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.cda-tv-info-modal.active {
    display: block;
}

.cda-tv-info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cda-tv-info-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: rgba(10,10,10,0.95); /* Will use fade color */
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cda-tv-info-modal-content {
        width: 80vw;
        max-width: 1000px;
    }
}

.cda-tv-info-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.cda-tv-info-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.cda-tv-info-modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
    color: #fff;
}

/* Custom scrollbar for info modal */
.cda-tv-info-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cda-tv-info-modal-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.cda-tv-info-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.cda-tv-info-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.cda-tv-info-modal-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding-right: 60px;
}

.cda-tv-info-modal-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.cda-tv-info-modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.cda-tv-info-modal-meta div {
    font-size: 16px;
    line-height: 1.6;
}

.cda-tv-info-modal-meta strong {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.cda-tv-info-modal-description p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    white-space: pre-wrap;
}

.cda-tv-info-modal-custom {
    margin-top: 30px;
}

.cda-tv-info-modal-custom div {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Loading Overlay */
.cda-tv-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cda-tv-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Share Notification */
.cda-tv-share-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.cda-tv-share-notification.show {
    transform: translateX(-50%) translateY(0);
}
