/* ==========================================================================
   CinemaCatalog — Modern Ultra-Dark Streaming Aesthetic Design System
   ========================================================================== */

:root {
    --bg-main: #0B0D14;
    --bg-surface: #12151F;
    --bg-card: rgba(22, 26, 38, 0.7);
    --bg-card-hover: rgba(30, 36, 54, 0.85);
    
    --primary: #E50914;
    --primary-glow: rgba(229, 9, 20, 0.35);
    --accent: #3B82F6;
    --accent-gold: #F59E0B;
    --accent-kp: #FF6600;
    
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(229, 9, 20, 0.6);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(26, 30, 46, 0.4) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    background: rgba(11, 13, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #E50914, #990008);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--primary-glow);
    color: #FFFFFF;
}

.logo-svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(135deg, #FFFFFF 40%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Bar */
.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 16px;
    flex: 1;
    max-width: 480px;
    transition: var(--transition);
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 0;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #ff1f2d;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: #FFFFFF;
}

.dmca-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #F87171;
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dmca-link:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.nav-icon-sm {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
    flex: 1;
    padding: 36px 24px;
}

/* Category Filter Bar */
.category-bar {
    margin-bottom: 28px;
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.pill-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.pill:hover .pill-icon {
    color: #FFFFFF;
}

.pill.active {
    background: linear-gradient(135deg, var(--primary), #B91C1C);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.pill.active .pill-icon {
    color: #FFFFFF;
}

/* ==========================================================================
   Movies Grid & Cards
   ========================================================================== */

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 24px;
}

.movie-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.movie-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.15);
}

.poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #141724;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .poster-img {
    transform: scale(1.05);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #181B2A, #121420);
    color: var(--text-muted);
}

.placeholder-svg-sm {
    width: 44px;
    height: 44px;
    opacity: 0.4;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 17, 26, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FBBF24;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.card-star {
    width: 12px;
    height: 12px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 13, 20, 0.8) 0%, transparent 60%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.movie-card:hover .card-overlay {
    opacity: 0.3;
}

.movie-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.movie-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-year {
    font-weight: 500;
}

.meta-type {
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
}

/* ==========================================================================
   Movie Detail Page (Cinematic Redesign)
   ========================================================================== */

.breadcrumb-bar {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.back-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.movie-hero-wrapper {
    position: relative;
}

/* Ambient Backdrop Glow */
.ambient-glow {
    position: absolute;
    top: -40px;
    left: 40px;
    width: 320px;
    height: 480px;
    background-size: cover;
    background-position: center;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    transform: scale(1.1);
}

.movie-detail-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.detail-main-grid {
    display: flex;
    gap: 40px;
    width: 100%;
}

.detail-divider {
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin: 32px 0;
    width: 100%;
}

/* Poster Column */
.detail-poster-col {
    width: 300px;
    flex-shrink: 0;
}

.poster-frame {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141724;
}

.detail-poster {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.detail-poster.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1D2B, #121420);
    color: var(--text-muted);
}

.placeholder-svg {
    width: 64px;
    height: 64px;
    opacity: 0.35;
}

/* Detail Info Column */
.detail-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.title-block {
    margin-bottom: 18px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.detail-orig-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Badges Row */
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-icon {
    width: 15px;
    height: 15px;
}

.badge-year {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.12);
}

.badge-kp {
    background: rgba(255, 102, 0, 0.15);
    color: #FF8533;
    border-color: rgba(255, 102, 0, 0.35);
}

.kp-tag {
    font-weight: 800;
    font-size: 11px;
    background: #FF6600;
    color: #000000;
    padding: 1px 4px;
    border-radius: 3px;
}

.badge-imdb {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.35);
}

.imdb-text {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.star-icon {
    width: 14px;
    height: 14px;
}

.badge-pending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.badge-category {
    background: rgba(59, 130, 246, 0.12);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.25);
}

/* Detail Description Section */
.detail-section {
    margin-bottom: 28px;
    flex: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.desc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
}

.detail-desc {
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.75;
    font-weight: 400;
}

/* Info Card Footer */
.info-card-footer {
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.verify-icon {
    width: 16px;
    height: 16px;
    color: #10B981;
}

/* ==========================================================================
   DMCA / Copyright Page
   ========================================================================== */

.dmca-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
}

.dmca-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.dmca-icon-badge {
    width: 56px;
    height: 56px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    flex-shrink: 0;
}

.dmca-shield-svg {
    width: 30px;
    height: 30px;
}

.dmca-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.dmca-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.dmca-legal-notice {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 36px;
}

.dmca-legal-notice p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.dmca-legal-notice p:last-child {
    margin-bottom: 0;
}

.dmca-form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 28px;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.form-section-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 22px;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.dmca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: #FFFFFF;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.dmca-btn:hover {
    background: #DC2626;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Search Results & Empty State
   ========================================================================== */

.search-header-box {
    margin-bottom: 28px;
}

.search-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.search-title span {
    color: var(--primary);
}

.search-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 48px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.page-current {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: rgba(11, 13, 20, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 32px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-brand {
    max-width: 420px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 14px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .detail-main-grid {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .movie-detail-card {
        padding: 24px;
    }
    
    .detail-poster-col {
        width: 220px;
    }
    
    .detail-title {
        font-size: 26px;
        text-align: center;
    }
    
    .detail-orig-title {
        text-align: center;
    }
    
    .detail-badges {
        justify-content: center;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .detail-poster-col {
        width: 180px;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .nav-links {
        display: none;
    }
}


/* ==========================================================================
   Movie Specs Table & Cast Section
   ========================================================================== */

/* Poster Ratings Block (Under Poster) */
.poster-ratings-block {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.rating-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-box.kp {
    background: rgba(255, 102, 0, 0.08);
    border-color: rgba(255, 102, 0, 0.25);
}

.rating-box.kp .box-label {
    color: #FF8533;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-box.kp .box-val {
    color: #FF8533;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-top: 2px;
}

.rating-box.imdb {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.rating-box.imdb .box-label {
    color: #FBBF24;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-box.imdb .box-val {
    color: #FBBF24;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-top: 2px;
}

/* Badge extras */
.badge-runtime {
    background: rgba(255, 255, 255, 0.07);
    color: #E2E8F0;
    border-color: rgba(255, 255, 255, 0.12);
}

.badge-age {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.25);
    font-weight: 800;
    padding: 4px 10px;
}

/* Movie Specs Section */
.movie-specs-section {
    margin-bottom: 28px;
}

.specs-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 22px;
}

.spec-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: baseline;
    gap: 16px;
    font-size: 14.5px;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.spec-sub {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
    font-size: 13.5px;
}

.genre-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.genre-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    color: var(--text-secondary);
}

.age-chip {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Cast Section (Actors with photos) */
.cast-section {
    margin-bottom: 28px;
}

.cast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.show-all-cast-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.show-all-cast-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.show-all-cast-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.actor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    transition: var(--transition);
}

.actor-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.actor-card.actor-extra {
    display: none;
}

.actor-avatar-frame {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background: #181B28;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.actor-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actor-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 16px;
}

.actor-avatar-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.45;
}

.actor-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.actor-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actor-character {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .actor-avatar-frame {
        width: 56px;
        height: 56px;
    }
    
    .actor-name {
        font-size: 11.5px;
    }
}
