/**
 * eLfilms.cz - Styly pro detail filmu
 *
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/film.css
 * @version    4.4 - přidán .skip-to-content, odstraněny inline styly z PHP
 * @datum      Březen 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 *
 * Styly pro veřejnou stránku detailu filmu (film.php).
 *
 * STYLUJE:
 * - Skip to content (dostupnost)
 * - Hero sekce (background obrázek, overlay)
 * - Movie info sekce (poster, název, žánry, trailer tlačítko)
 * - Details grid (3 sloupce: poster-section, content-detail, cast-info)
 * - Lesbický obsah meter (rainbow bar)
 * - TMDB hodnocení (kruhový SVG indikátor)
 * - Hodnocení pod posterem (hvězdičky + modal)
 * - Streamovací platformy (barevné ikony)
 * - Motto filmu (citát nad fotogalerií)
 * - Fotogalerie (3-sloupcový grid)
 * - Podobné filmy (5-sloupcový grid karet)
 * - Modální okna (trailer, titulky, hodnocení)
 * - TinyMCE popis (.film-story)
 * - Odkaz na slavnou ženu v obsazení (.actor-name-link, .actor-photo-link)
 *
 * POUŽÍVÁ:
 * - film.php (parent stránka)
 *
 * DESIGN:
 * - Barvy: tmavě modrá (#0d1b2a, #0b334f–#1a4f72), zlatá (#EEB500)
 * - Max šířka obsahu: 1200px
 *
 * NOTE:
 * - Responzivní breakpointy jsou v film-responsive.css
 * - .film-story používá !important pro přepsání TinyMCE inline stylů
 * - .photo-gallery h3::after/before zakázáno (žádné animované podtržení)
 */

/* ============================================
   SKIP TO CONTENT (dostupnost)
   ============================================ */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    background: #EEB500;
    color: #0b334f;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.skip-to-content:focus {
    left: 10px;
    top: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0b334f;
    color: white;
    min-height: 100vh;
}

/* ============================================
   HERO SEKCE
   ============================================ */
.hero-section {
    height: 50vh;
    background: linear-gradient(135deg, #5b9bd5, #6ba6cd, #7bb3d3, #8bc4d9);
    background-size: cover;
    background-position: top;
    position: relative;
    margin-top: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(11,51,79,0.2) 70%, rgba(11,51,79,0.5) 100%);
    z-index: 1;
}

/* ============================================
   MOVIE INFO SEKCE (poster + info nad details)
   ============================================ */
.movie-info-section {
    background-color: #0b334f;
    padding: 80px 0 40px 0;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: start;
    width: 100%;
    position: relative;
}

/* ============================================
   POSTER CONTAINER (vyčnívá nad hero sekci)
   ============================================ */
.poster-container {
    position: absolute;
    top: -220px;
    left: 20px;
    width: 280px;
    z-index: 3;
}

.movie-poster {
    background: #333;
    border-radius: 15px;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 100%;
}

/* ============================================
   MOVIE INFO (hlavní textová část)
   ============================================ */
.movie-info {
    margin-left: 340px;
    flex: 1;
    max-width: none;
}

.movie-header {
    margin-bottom: 25px;
}

.movie-title-section {
    width: 100%;
}

.movie-year {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
}

.movie-title {
    font-size: 52px;
    margin-bottom: 15px;
    color: white;
    font-weight: bold;
    line-height: 1.1;
}

.movie-genres {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============================================
   TRAILER TLAČÍTKO + META INFO (wrapper)
   ============================================ */
.trailer-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
}

.movie-meta {
    display: flex;
    gap: 15px;
}

.movie-meta-info {
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 500;
}

.country-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-separator {
    color: rgba(255,255,255,0.5);
    margin: 0 8px;
}

.trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.trailer-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

/* ============================================
   CONTENT TAGY (LGBTQ+ a vlastní tagy)
   ============================================ */
.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.content-tag {
    background: rgba(255,255,255,0.15);
    color: #EEB500;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.content-tag:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   DETAILS SEKCE (3-sloupcový grid)
   ============================================ */
.details-section {
    padding: 30px 0 60px;
    background-color: #0b334f;
}

.details-grid {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* ============================================
   LEVÝ SLOUPEC (poster-section)
   ============================================ */
.poster-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compact-rating {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.compact-rating h4 {
    color: #EEB500;
    margin-bottom: 10px;
    font-size: 16px;
}

.rating-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rating-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.lesbian-content-meter {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
}

.lesbian-content-meter h4 {
    color: #EEB500;
    margin-bottom: 15px;
    font-size: 16px;
}

.rainbow-bar {
    height: 25px;
    border-radius: 15px;
    background: linear-gradient(90deg, #e40303 0%, #ff8c00 16.66%, #ffed00 33.33%, #008018 50%, #0078d4 66.66%, #732982 83.33%, #e40303 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.meter-indicator {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 35px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.meter-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.official-web-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
}

.official-web-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #EEB500;
}

.subtitle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
}

.subtitle-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

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

/* ============================================
   PROSTŘEDNÍ SLOUPEC (content-detail)
   ============================================ */
.content-detail {
    padding-right: 20px;
}

.content-detail h2 {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 24px;
}

.content-detail h3 {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 24px;
}

.content-detail p {
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    text-align: justify;
}

/* ============================================
   FILM STORY - popis filmu (TinyMCE HTML)
   ============================================ */
.film-story p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    font-family: inherit !important;
    text-indent: 1.5em !important;
    margin-top: 0 !important;
    margin-bottom: 1.2em !important;
    padding: 0 !important;
}

.film-story p span,
.film-story p strong,
.film-story p em,
.film-story p a,
.film-story p b,
.film-story p i,
.film-story p u {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    font-family: inherit !important;
}

.film-story ul,
.film-story ol {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    padding-left: 1.8em !important;
    margin-top: 0 !important;
    margin-bottom: 1.2em !important;
    text-indent: 0 !important;
}

.film-story li {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    margin-bottom: 0.3em !important;
    text-indent: 0 !important;
}

.film-story strong,
.film-story b { font-weight: bold; }

.film-story em,
.film-story i { font-style: italic; }

.film-story a { color: #EEB500; text-decoration: underline; }

.movie-credits {
    margin-top: 25px;
    margin-bottom: 35px;
}

.credit-item {
    margin-bottom: 10px;
}

.credit-label {
    color: #EEB500;
    font-weight: bold;
    margin-right: 8px;
}

.credit-value {
    color: white;
}

/* ============================================
   PRAVÝ SLOUPEC - obsazení (cast-info)
   ============================================ */
.cast-info {
    background: rgba(255,255,255,0.05);
    padding: 25px 15px 15px 15px;
    border-radius: 15px;
}

.cast-info h4 {
    color: #EEB500;
    margin-bottom: 12px;
    font-size: 18px;
}

.cast-list {
    list-style: none;
}

.cast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.actor-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #666;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%23888" cx="50" cy="50" r="50"/><circle fill="%23bbb" cx="50" cy="35" r="12"/><ellipse fill="%23bbb" cx="50" cy="72" rx="20" ry="15"/></svg>');
    background-size: cover;
}

.actor-name {
    font-size: 16px;
    color: white;
    flex: 1;
}

/* ============================================
   ODKAZ NA SLAVNOU ŽENU V OBSAZENÍ
   ============================================ */

/* Jméno jako zlatý odkaz – žádné podtržení */
.actor-name-link {
    color: #EEB500;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    flex: 1;
    font-size: 16px;
}

.actor-name-link:hover {
    color: #ffd700;
}

/* Foto jako odkaz – bez výchozího stylu */
.actor-photo-link {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.actor-photo-link:hover {
    opacity: 0.85;
}

.menu-dots {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    margin: 0 10px;
}

.character-name {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   FOTOGALERIE Z FILMU
   ============================================ */
.photo-gallery-section {
    padding: 40px 0 60px 0;
    background-color: #0b334f;
}

.photo-gallery {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
}

.photo-gallery h3 {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.photo-gallery h3::after,
.photo-gallery h3::before {
    display: none !important;
    content: none !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.gallery-item {
    background: transparent;
    border-radius: 8px;
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    z-index: 10;
}

/* ============================================
   MOTTO FILMU
   ============================================ */
.film-motto-section {
    background: #0b334f;
    padding: 0 0 40px 0;
}

.film-motto {
    background: rgba(255,255,255,0.05);
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    border: none;
}

.film-motto p {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
    text-indent: 0;
    padding: 0;
    text-align: center;
}

/* ============================================
   PODOBNÉ FILMY
   ============================================ */
.similar-movies {
    padding: 60px 0 80px 0;
    background-color: #0c629e;
}

.similar-movies h3 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    font-size: 28px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 200px);
    gap: 30px;
    justify-content: center;
}

.movie-card {
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: block;
}

.movie-card:hover {
    transform: translateY(-10px);
}

.movie-card:hover .movie-card-title {
    color: #EEB500;
}

.movie-card-img {
    background: #333;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.movie-card-title {
    font-size: 14px;
    text-align: center;
    color: white;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 4px;
}

.movie-card-year {
    font-size: 12px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-weight: normal;
}

/* ============================================
   MODAL - základní
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #0b334f;
    border-radius: 15px;
    padding: 15px 20px 20px 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.video-title {
    color: #EEB500;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 15px;
}

.video-container:last-of-type {
    margin-bottom: 0;
}

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

/* ============================================
   MODAL - titulky
   ============================================ */
.subtitles-list {
    max-height: 60vh;
    overflow-y: auto;
}

.subtitle-item-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.subtitle-info-section {
    flex: 1;
}

.subtitle-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.subtitle-flag {
    font-size: 24px;
}

.subtitle-lang {
    color: #EEB500;
    font-weight: bold;
    font-size: 18px;
}

.subtitle-meta {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.subtitle-meta span {
    margin-right: 15px;
}

.subtitle-description {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-style: italic;
    margin-top: 8px;
}

.btn-download {
    background: linear-gradient(45deg, #EEB500, #ffd700);
    color: #0b334f;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238,181,0,0.4);
}

/* ============================================
   HODNOCENÍ POD POSTEREM
   ============================================ */
.poster-rating-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.rating-stars-display {
    display: flex;
    gap: 3px;
    font-size: 20px;
}

.rating-stars-display .star.filled { color: #EEB500; }
.rating-stars-display .star.half   { color: #EEB500; }
.rating-stars-display .star.empty  { color: #555; }

.poster-rating-compact .rating-text {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.rating-divider {
    color: #666;
    font-size: 16px;
}

.rate-link {
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.rate-link:hover {
    opacity: 0.8;
}

/* ============================================
   MODAL - hodnocení
   ============================================ */
.rating-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.rating-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a2332;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    min-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.rating-modal-content h3 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #fff;
    text-align: center;
}

.modal-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.modal-star {
    font-size: 48px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-star:hover,
.modal-star.hover {
    color: #EEB500;
    transform: scale(1.1);
}

.submit-rating-btn {
    width: 100%;
    padding: 14px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-rating-btn:hover {
    background: #ffca28;
}

.submit-rating-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.rating-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.rating-message.success { color: #4CAF50; }
.rating-message.error   { color: #f44336; }

/* ============================================
   STREAMOVACÍ PLATFORMY
   ============================================ */
.streaming-platforms-section {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.streaming-platforms-section h4 {
    color: #EEB500;
    margin-bottom: 12px;
    font-size: 16px;
    text-align: center;
}

.streaming-icons-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 180px;
    margin: 0 auto;
}

.streaming-icon {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.streaming-icon:hover {
    transform: translateY(-2px);
}

.streaming-icon i {
    font-size: 16px;
    color: white;
    margin-bottom: 2px;
}

.streaming-icon span {
    font-size: 6px;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 0 1px;
}