/* ============================================
   Toppfilm — Dark Theme
   ============================================ */

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --bg-nav: transparent;
    --bg-nav-scrolled: rgba(15, 15, 15, 0.95);
    --bg-footer: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #777;
    --accent-red: #E50914;
    --accent-wine: #8b0000;
    --rating-gold: #d4af37;
    --border-subtle: #2a2a2a;
    --border-card: #1f1f1f;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 150ms ease;
    --transition-med: 300ms ease;
}

/* ============================================
   Base
   ============================================ */

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    min-height: 70vh;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'DM Sans', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

::selection {
    background: var(--accent-red);
    color: #fff;
}

/* ============================================
   Navbar
   ============================================ */

.tf-navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    transition: background var(--transition-med);
    padding: 0.6rem 0;
    z-index: 1030;
}

.tf-navbar.scrolled {
    background: var(--bg-nav-scrolled);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.tf-navbar .navbar-brand img {
    transition: opacity var(--transition-fast);
}

.tf-navbar .navbar-brand:hover img {
    opacity: 0.85;
}

.tf-navbar .nav-link {
    font-family: 'Montserrat', 'DM Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.tf-navbar .nav-link:hover,
.tf-navbar .nav-link.active {
    color: var(--text-primary);
}

.tf-navbar .nav-link.active {
    font-weight: 600;
}

/* Genre dropdown */
.tf-dropdown-menu {
    background: #1a1a1a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.4rem 0;
    min-width: 180px;
}

.tf-dropdown-menu .dropdown-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.45rem 1.2rem;
    transition: all var(--transition-fast);
}

.tf-dropdown-menu .dropdown-item:hover,
.tf-dropdown-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tf-dropdown-menu .dropdown-divider {
    border-color: var(--border-subtle);
    margin: 0.3rem 0;
}

/* Genres overview page */
.tf-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tf-genre-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tf-genre-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.tf-genre-name {
    font-family: 'Montserrat', 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.tf-genre-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Search in navbar */
.tf-search-form {
    max-width: 240px;
}

.tf-search-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 0.82rem;
    border-radius: 20px 0 0 20px;
    padding: 0.4rem 0.9rem;
}

.tf-search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tf-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
    color: var(--text-primary);
}

.tf-search-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
    color: var(--text-secondary);
    border-radius: 0 20px 20px 0;
    padding: 0.4rem 0.7rem;
    transition: all var(--transition-fast);
}

.tf-search-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Mobile navbar collapse */
@media (max-width: 991.98px) {
    .tf-navbar .navbar-collapse {
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin: 0.5rem -0.75rem 0;
        padding: 1rem 1.5rem 1.2rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tf-navbar .nav-link {
        padding: 0.7rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .tf-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .tf-search-form {
        max-width: 100%;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
    }

    .tf-search-input {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Hamburger toggle styling */
.tf-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
}

.tf-navbar .navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--accent-red);
}

/* Space for fixed navbar */
body {
    padding-top: 56px;
}

/* ============================================
   Footer
   ============================================ */

.tf-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-subtle);
}

.tf-footer-heading {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tf-footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}
.tf-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.tf-footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s;
}
.tf-footer-social a:hover {
    color: #fff;
}

.tf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-footer-links li {
    margin-bottom: 0.4rem;
}

.tf-footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.tf-footer-links a:hover {
    color: var(--text-primary);
}

.tf-footer-bottom {
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.tf-footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.tf-footer-bottom a {
    color: var(--text-secondary);
}

.tf-footer-bottom a:hover {
    color: var(--accent-red);
}

/* ============================================
   Cards (titel-kort)
   ============================================ */

.tf-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tf-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.tf-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.tf-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tf-card-body {
    padding: 0.6rem 0.5rem;
}

.tf-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-card-year {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tf-card-rating {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--rating-gold);
    z-index: 2;
}

.tf-card-rating.tf-rating-green { color: var(--rating-green); }
.tf-card-rating.tf-rating-yellow { color: var(--rating-gold); }
.tf-card-rating.tf-rating-red { color: var(--accent-red); }

.tf-card-netflix-badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    width: 1.3rem;
    height: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--accent-red);
    background: rgba(0, 0, 0, 0.75);
    border-radius: 3px;
    z-index: 2;
    letter-spacing: -0.02em;
}

.tf-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.7rem 0.7rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity var(--transition-med);
}

.tf-card:hover .tf-card-overlay {
    opacity: 1;
}

.tf-card-overlay-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tf-card-runtime,
.tf-card-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tf-card-overlay .tf-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.tf-genre-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    color: var(--text-secondary);
}

/* ============================================
   Rating badge (cirkulär)
   ============================================ */

.tf-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid;
    flex-shrink: 0;
}

.tf-rating-sm {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
    border-width: 2px;
}

.tf-rating-lg {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    border-width: 3px;
}

.tf-rating-high {
    border-color: #21d07a;
    background: rgba(33, 208, 122, 0.15);
}

.tf-rating-mid {
    border-color: #d2d531;
    background: rgba(210, 213, 49, 0.15);
}

.tf-rating-low {
    border-color: #db2360;
    background: rgba(219, 35, 96, 0.15);
}

.tf-rating-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.2rem;
}

/* ============================================
   Content rows (horisontell scroll)
   ============================================ */

.tf-row-section {
    margin-bottom: 2rem;
}

.tf-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0 3px;
}

.tf-row-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tf-row-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tf-row-title a:hover {
    color: var(--text-secondary);
}

.tf-row-title a .ti {
    font-size: 0.9rem;
    vertical-align: middle;
}

.tf-row-link {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tf-row-link:hover {
    color: var(--accent-red);
}

.tf-scroll-container {
    position: relative;
}

.tf-scroll-row {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.tf-scroll-row::-webkit-scrollbar {
    display: none;
}

.tf-scroll-row .tf-card {
    flex: 0 0 160px;
    min-width: 160px;
}

.tf-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: 1.2rem;
}

.tf-scroll-container:hover .tf-scroll-arrow {
    opacity: 1;
}

.tf-scroll-arrow:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.tf-scroll-arrow-left {
    left: -12px;
}

.tf-scroll-arrow-right {
    right: -12px;
}

/* ============================================
   Hero
   ============================================ */

.tf-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: -56px;
    padding-top: 56px;
}

.tf-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.tf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.1) 0%,
        rgba(15, 15, 15, 0.4) 50%,
        rgba(15, 15, 15, 0.85) 80%,
        var(--bg-primary) 100%
    );
}

.tf-hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 3rem 3rem;
    max-width: 650px;
}

.tf-hero-surtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.tf-hero-title {
    font-family: 'Montserrat', 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.tf-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.tf-hero-meta span {
    color: var(--text-secondary);
}

.tf-hero-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-style: italic;
}

.tf-hero-rating {
    color: var(--rating-gold) !important;
}

.tf-hero-overview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.tf-hero-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.tf-site-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
    margin: 0 0 2rem;
}

.tf-site-context .ti {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn-tf-primary {
    background: var(--accent-red);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.btn-tf-primary:hover {
    background: #c40812;
    color: #fff;
}

.btn-tf-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    transition: background var(--transition-fast);
}

.btn-tf-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-tf-netflix {
    background: #E50914;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.btn-tf-netflix:hover {
    background: #b20710;
    color: #fff;
}

/* ============================================
   Top 10 kort
   ============================================ */

.tf-top10-card {
    position: relative;
    flex: 0 0 200px;
    min-width: 200px;
    display: flex;
    align-items: flex-end;
}

.tf-top10-number {
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--border-subtle);
    line-height: 1;
    position: absolute;
    left: -10px;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.tf-top10-card .tf-card {
    position: relative;
    z-index: 1;
    margin-left: 50px;
    flex: 0 0 130px;
}

/* ============================================
   Grid (list pages)
   ============================================ */

.tf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .tf-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

@media (min-width: 1200px) {
    .tf-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================
   Pagination
   ============================================ */

.tf-pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tf-pagination .page-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.tf-pagination .page-item.active .page-link {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.tf-pagination .page-item.disabled .page-link {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
    color: var(--text-muted);
}

/* ============================================
   Detail page
   ============================================ */

.tf-detail-backdrop {
    position: relative;
    width: 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center top;
    margin-top: -56px;
    padding-top: 56px;
}

.tf-detail-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.3) 0%,
        rgba(15, 15, 15, 0.7) 60%,
        var(--bg-primary) 100%
    );
}

.tf-detail-header {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.tf-detail-poster {
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 220px;
}

.tf-detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.tf-detail-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.tf-detail-ratings {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin: 1rem 0;
}

.tf-rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.tf-rating-badge .tf-rating-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Montserrat', 'DM Sans', sans-serif;
    color: #fff;
    line-height: 1.2;
    height: 1.56rem;
    display: flex;
    align-items: center;
}

.tf-rating-badge .tf-rating-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tf-rating-badge.tf-rating-green .tf-rating-value { color: #21d07a; }
.tf-rating-badge.tf-rating-yellow .tf-rating-value { color: #d2d531; }
.tf-rating-badge.tf-rating-red .tf-rating-value { color: #db2360; }

/* Bokstavsbetyg (Toppfilm grade) */
.tf-grade-badge .tf-rating-value {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.tf-grade-badge.tf-grade-a .tf-rating-value { color: #21d07a; }
.tf-grade-badge.tf-grade-b .tf-rating-value { color: #6dd400; }
.tf-grade-badge.tf-grade-c .tf-rating-value { color: #d2d531; }
.tf-grade-badge.tf-grade-d .tf-rating-value { color: #db2360; }

.tf-badge-netflix {
    background: var(--accent-red) !important;
    color: #fff !important;
}

.tf-detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tf-detail-genres a {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tf-detail-genres a:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.tf-detail-tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tf-detail-actions {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
}

/* Delningsknappar */
.tf-share-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.tf-share-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.2rem;
}

.tf-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1rem;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.tf-share-btn:hover { color: #fff; }
.tf-share-facebook:hover { background: #1877f2; }
.tf-share-x:hover { background: #000; color: #fff; }
.tf-share-linkedin:hover { background: #0a66c2; }
.tf-share-whatsapp:hover { background: #25d366; }
.tf-share-messenger:hover { background: #0084ff; }

.tf-detail-overview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tf-detail-seo-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tf-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tf-cast-section {
    margin-bottom: 2rem;
}

.tf-recommendations {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Sidebar */
.tf-sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.tf-sidebar-box h3,
.tf-sidebar-box .tf-sidebar-box-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.tf-sidebar-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.tf-sidebar-label {
    color: var(--text-muted);
}

.tf-sidebar-value {
    color: var(--text-primary);
    text-align: right;
}

/* Cast grid */
.tf-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
}

.tf-cast-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast);
}

.tf-cast-card:hover {
    transform: translateY(-3px);
}

.tf-cast-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    margin: 0 auto 0.4rem;
}

.tf-cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-cast-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.tf-cast-character {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   Sort bar
   ============================================ */

.tf-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tf-sort-bar .form-select {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: auto;
    min-width: 180px;
}

.tf-sort-bar .form-select:focus {
    border-color: var(--accent-red);
    box-shadow: none;
}

.tf-title-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tf-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tf-type-filter {
    display: flex;
    gap: 0.25rem;
}

.tf-type-btn {
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.tf-type-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.tf-type-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.tf-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 0;
}

/* Search hero */
.tf-search-hero-input {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.tf-search-hero-input::placeholder {
    color: var(--text-muted);
}

.tf-search-hero-input:focus {
    background-color: var(--bg-card);
    border-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: none;
}

/* ============================================
   Section wrapper
   ============================================ */

.tf-section {
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .tf-section {
        padding: 0 2.5rem;
    }
}

/* ============================================
   Breadcrumb
   ============================================ */

.tf-breadcrumb {
    padding: 0.8rem 0 0.5rem;
    font-size: 0.8rem;
}

.tf-breadcrumb a {
    color: var(--text-muted);
}

.tf-breadcrumb a:hover {
    color: var(--accent-red);
}

.tf-breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.4rem;
}

.tf-breadcrumb .current {
    color: var(--text-secondary);
}

/* ============================================
   Misc utilities
   ============================================ */

.text-gold {
    color: var(--rating-gold);
}

.text-red {
    color: var(--accent-red);
}

.bg-dark-card {
    background: var(--bg-card);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767.98px) {
    .tf-hero {
        min-height: 70vh;
    }

    .tf-hero-surtitle {
        font-size: 0.8rem;
    }

    .tf-hero-title {
        font-size: 2rem;
    }

    .tf-hero-content {
        padding: 1.5rem 1.2rem 2rem;
    }

    .tf-scroll-row .tf-card {
        flex: 0 0 130px;
        min-width: 130px;
    }

    .tf-scroll-arrow {
        display: none;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .tf-detail-poster {
        max-width: 150px;
    }

    .tf-cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    }

    .tf-cast-photo {
        width: 70px;
        height: 70px;
    }

    .tf-top10-number {
        font-size: 5rem;
    }

    .tf-top10-card {
        flex: 0 0 150px;
        min-width: 150px;
    }

    .tf-top10-card .tf-card {
        margin-left: 35px;
        flex: 0 0 100px;
    }
}

/* ============================================
   Seasons & Episodes
   ============================================ */

.tf-seasons-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.tf-season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tf-season-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tf-season-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.tf-season-tab.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.tf-season-info {
    margin-bottom: 1.5rem;
}

.tf-season-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.tf-season-desc {
    color: var(--text-secondary);
}

.tf-season-overview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.tf-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tf-episode-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background var(--transition-fast);
}

.tf-episode-card:hover {
    background: var(--bg-card-hover);
}

.tf-episode-still {
    position: relative;
    flex-shrink: 0;
    width: 227px;
    height: 128px;
}

.tf-episode-still img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-episode-runtime {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.tf-episode-info {
    flex: 1;
    padding: 0.75rem 0.75rem 0.75rem 0;
    min-width: 0;
}

.tf-episode-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tf-episode-number {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.tf-episode-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-episode-rating {
    color: var(--rating-gold);
    font-size: 0.8rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.tf-episode-rating .ti {
    font-size: 0.7rem;
}

.tf-episode-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: block;
    margin-bottom: 0.35rem;
}

.tf-episode-overview {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile: stack episode cards vertically */
@media (max-width: 575.98px) {
    .tf-episode-card {
        flex-direction: column;
    }

    .tf-episode-still {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .tf-episode-info {
        padding: 0.75rem;
    }

    .tf-episode-overview {
        -webkit-line-clamp: 2;
    }
}

/* ============================================
   Section header (title + link)
   ============================================ */

.tf-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.tf-section-header .tf-section-title {
    margin-bottom: 0;
}

.tf-section-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition-fast);
}

.tf-section-link:hover {
    color: var(--text-primary);
}

/* ============================================
   Cast table (rollista)
   ============================================ */

.tf-cast-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-secondary);
    --bs-table-border-color: var(--border-subtle);
    border-color: var(--border-subtle);
}

.tf-cast-table thead th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 1px;
    padding: 0.75rem 0.75rem;
}

.tf-cast-table tbody tr {
    transition: background var(--transition-fast);
}

.tf-cast-table tbody tr:nth-child(even) {
    --bs-table-bg-state: rgba(255, 255, 255, 0.02);
}

.tf-cast-table tbody tr:hover {
    --bs-table-bg-state: var(--bg-card-hover);
}

.tf-cast-table td {
    vertical-align: middle;
    padding: 0.65rem 0.75rem;
}

.tf-cast-table-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.tf-cast-table-name {
    color: var(--text-primary);
    font-weight: 500;
}

.tf-cast-table-name:hover {
    color: var(--accent-red);
}

.tf-cast-table-role {
    color: var(--text-secondary);
}

/* Breadcrumb dark theme */
.tf-breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.tf-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
}

.tf-breadcrumb .breadcrumb-item a:hover {
    color: var(--text-primary);
}

.tf-breadcrumb .breadcrumb-item.active {
    color: var(--text-secondary);
}

.tf-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ============================================
   Cast list page (rollista)
   ============================================ */

.tf-detail-backdrop--short {
    min-height: 280px;
}

.tf-detail-poster--sm {
    max-width: 140px;
}

p.tf-cast-list-intro {
    max-width: 620px;
    margin: 0.75rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Mervärdeskort under rollistan: "Andra filmer/serier med X" */
.tf-cast-more {
    margin-top: 2.5rem;
}

.tf-cast-more-card {
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
}

.tf-cast-more-card h2 {
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}

.tf-cast-more-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-cast-more-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.tf-cast-more-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tf-cast-more-list a {
    color: var(--text-primary);
    font-weight: 500;
}

.tf-cast-more-list a:hover {
    color: var(--accent-red);
}

/* ============================================
   Actor page
   ============================================ */

.tf-actor-header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tf-actor-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.tf-actor-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tf-actor-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.tf-actor-stats {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.tf-actor-stat-sep {
    margin: 0 0.25rem;
    color: var(--text-muted);
}

.tf-actor-section {
    margin-bottom: 2.5rem;
}

.tf-actor-section .tf-section-title {
    margin-bottom: 1.25rem;
}

.tf-section-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

/* Actor list grid & card */
.tf-actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tf-actor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    text-decoration: none;
    transition: background 0.2s;
}

.tf-actor-card:hover {
    background: var(--bg-hover);
}

.tf-actor-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.tf-actor-card-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
}

.tf-actor-card-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Actor about & FAQ */
.tf-actor-about {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tf-actor-about h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tf-actor-bio p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tf-actor-faq {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
}

.tf-faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tf-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tf-faq-item:first-child {
    padding-top: 0;
}

.tf-faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.tf-faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* FAQ-accordion på film-/serie-detaljsidor (hopfällbar, kompakt) */
.tf-detail-faq {
    margin: 2.5rem 0;
}

.tf-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tf-faq-accordion .tf-faq-item {
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.tf-faq-accordion .tf-faq-item:hover {
    border-color: #3a3a3a;
}

.tf-faq-accordion .tf-faq-item[open] {
    border-color: #3a3a3a;
    background: var(--bg-card-hover);
}

.tf-faq-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tf-faq-accordion summary::-webkit-details-marker {
    display: none;
}

.tf-faq-accordion summary h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.tf-faq-accordion .tf-faq-item[open] summary h3,
.tf-faq-accordion summary:hover h3 {
    color: var(--accent-red);
}

.tf-faq-chevron {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.tf-faq-accordion .tf-faq-item[open] .tf-faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-red);
}

.tf-faq-accordion .tf-faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    padding: 0 1.15rem 1.05rem;
}

.tf-faq-accordion .tf-faq-item[open] p {
    animation: tf-faq-reveal var(--transition-fast) ease;
}

@keyframes tf-faq-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .tf-actor-header {
        text-align: center;
    }
    .tf-actor-header .row {
        justify-content: center;
    }
    .tf-actor-photo {
        width: 120px;
        height: 120px;
    }
    .tf-actor-header h1 {
        font-size: 1.5rem;
    }
    .tf-actor-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

/* ============================================
   404 page
   ============================================ */

.tf-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.tf-404-code {
    display: block;
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tf-404-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.tf-404-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tf-404-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ============================================
   Om Toppfilm
   ============================================ */

.tf-about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.tf-about-disclaimer {
    font-style: italic;
    opacity: 0.75;
}

.tf-about-image-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-about-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

.tf-about-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.tf-about-features li:last-child {
    border-bottom: none;
}

.tf-about-features .ti {
    color: var(--accent-red);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tf-about-source-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1rem;
    line-height: 1.5;
}

.tf-about-source-note .ti {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Team / Medarbetare */
.tf-team {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tf-team-member {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.tf-team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tf-team-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tf-team-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.tf-team-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tf-team-email {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--accent-red);
    text-decoration: none;
    margin-top: 0.25rem;
}

.tf-team-email:hover {
    text-decoration: underline;
}

.tf-team-email .ti {
    font-size: 0.95rem;
}

/* ============================================
   Kontaktformulär
   ============================================ */

.tf-contact-intro {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.tf-contact-form .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
}

.tf-contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.tf-contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: #E50914;
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.15);
    color: #fff;
}

.tf-contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.tf-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tf-contact-info li:last-child {
    border-bottom: none;
}

.tf-contact-info .ti {
    font-size: 1.25rem;
    color: #E50914;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.tf-contact-info strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.tf-contact-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.tf-contact-info a:hover {
    color: #E50914;
}

.tf-contact-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   Cookie banner
   ============================================ */

.tf-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(20, 20, 20, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    animation: tfCookieSlideUp 0.4s ease;
}

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

.tf-cookie-banner-hide {
    animation: tfCookieSlideDown 0.3s ease forwards;
}

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

.tf-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.tf-cookie-banner-inner p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.tf-cookie-banner-inner a {
    color: #E50914;
    text-decoration: underline;
}

.tf-cookie-banner-inner .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .tf-cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ============================================
   Policy-sidor (cookie, integritet)
   ============================================ */

.tf-policy {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.tf-policy h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tf-policy h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.tf-policy h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.tf-policy p {
    margin-bottom: 0.75rem;
}

.tf-policy a {
    color: #E50914;
    text-decoration: none;
}

.tf-policy a:hover {
    text-decoration: underline;
    color: #ff1a25;
}

.tf-policy hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.tf-policy ul,
.tf-policy ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.tf-policy li {
    margin-bottom: 0.35rem;
}

.tf-policy-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
}

.tf-policy-updated {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.tf-policy-table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.tf-policy-table thead th {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tf-policy-table td,
.tf-policy-table th {
    border-color: rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0.75rem;
}

.tf-policy-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid rgba(255, 193, 7, 0.4);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0;
}

.tf-policy-notice .ti {
    color: rgba(255, 193, 7, 0.6);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ============================================
   Artiklar — lista
   ============================================ */

.tf-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tf-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tf-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-med), border-color var(--transition-med);
    color: var(--text-secondary);
    text-decoration: none;
}

.tf-article-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
    color: var(--text-secondary);
}

.tf-article-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.tf-article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.tf-article-card:hover .tf-article-card-image img {
    transform: scale(1.05);
}

.tf-article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

.tf-article-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tf-article-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tf-article-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-article-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tf-article-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition-fast);
}

.tf-article-card:hover .tf-article-card-link {
    gap: 0.6rem;
}

/* ============================================
   Artiklar — detalj
   ============================================ */

.tf-article-backdrop {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.tf-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.tf-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tf-article-meta-item i {
    font-size: 1rem;
    color: var(--accent-red);
}

/* Prose-styling för Markdown-innehåll */
.tf-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tf-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.tf-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.tf-article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.tf-article-content p {
    margin-bottom: 1.25rem;
}

.tf-article-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tf-article-content a:hover {
    color: #ff2d36;
}

.tf-article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tf-article-content ul,
.tf-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.tf-article-content li {
    margin-bottom: 0.4rem;
}

.tf-article-content blockquote {
    border-left: 3px solid var(--accent-red);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.tf-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.tf-article-content code {
    background: var(--bg-card);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--accent-red);
}

.tf-article-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.tf-article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

.tf-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.tf-article-content hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2rem 0;
}

.tf-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.tf-article-content th,
.tf-article-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.tf-article-content th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.tf-article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* Sidebar — fler artiklar */
.tf-article-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tf-article-sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    color: var(--text-secondary);
    text-decoration: none;
}

.tf-article-sidebar-item:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tf-article-sidebar-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
}

.tf-article-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-article-sidebar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tf-article-sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-article-sidebar-item:hover .tf-article-sidebar-title {
    color: var(--accent-red);
}

.tf-article-sidebar-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
