/* Modern site shell used by refreshed browse, series and episode pages. */

body.site-modern {
    margin: 0;
    padding: 0 12px 72px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: Calibri, Arial, sans-serif;
    box-sizing: border-box;
}

body.site-modern *,
body.site-modern *::before,
body.site-modern *::after {
    box-sizing: border-box;
}

.site-header,
.site-search,
.site-social,
.site-notice-row,
.site-info-panel,
.site-content,
.site-footer {
    width: min(100%, 980px);
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    margin-top: 10px;
    margin-bottom: 10px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 24, 32, 0.06);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-brand img {
    display: block;
    width: min(320px, 52vw);
    max-height: 54px;
    object-fit: contain;
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.site-theme-switcher {
    position: relative;
    flex: 0 0 auto;
}

.site-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface-soft);
    color: var(--theme-text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.site-theme-toggle:hover,
.site-theme-open .site-theme-toggle {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}

.site-theme-toggle .material-icons,
.site-theme-option .material-icons {
    font-size: 16px;
}

.site-theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(20, 24, 32, 0.18);
}

.site-theme-open .site-theme-menu {
    display: grid;
    gap: 4px;
}

.site-theme-option {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--theme-text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.site-theme-option:hover,
.site-theme-option[aria-pressed="true"],
.site-theme-option[aria-checked="true"] {
    border-color: var(--theme-accent);
    background: var(--theme-accent-soft);
    color: var(--theme-accent);
}

.site-theme-toggle:focus-visible,
.site-theme-option:focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: 2px;
}

.site-theme-noscript {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    font-size: 12px;
}

.site-theme-noscript label {
    font-weight: 700;
    color: var(--theme-text-soft);
}

.site-account,
.site-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.site-account span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-account-link,
.site-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface-soft);
    color: var(--theme-text-soft);
    text-decoration: none;
    white-space: nowrap;
}

.site-account-link:hover,
.site-auth-back:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}

.site-google-wrap {
    min-height: 32px;
}

.site-search {
    margin-bottom: 10px;
    padding: 12px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(20, 24, 32, 0.04);
}

.site-search-form {
    margin: 0;
}

.site-search-label {
    display: block;
    margin-bottom: 6px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.site-search-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

body.site-modern .site-search-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--theme-border-strong);
    border-radius: 7px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font: inherit;
    font-size: 14px;
}

body.site-modern .site-search-input:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 14%, transparent);
}

body.site-modern .site-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 104px;
    height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.site-search-submit:hover {
    background: var(--theme-accent-hover);
}

.site-search-submit .material-icons {
    font-size: 18px;
}

.site-search-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.site-search-mode label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface-soft);
    color: var(--theme-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.site-search-mode input {
    margin: 0;
}

.site-voice-search {
    margin-top: 8px;
    color: #555;
    font-size: 12px;
}

.site-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 9px 12px;
    background: var(--theme-surface);
    border: 1px solid #e6e0d9;
    border-left: 4px solid var(--theme-accent);
    border-radius: 8px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.site-social-title {
    color: #333;
}

.site-social a {
    color: var(--theme-accent);
    text-decoration: none;
}

.site-social a:hover {
    text-decoration: underline;
}

.site-social-facebook {
    display: inline-flex;
    align-items: center;
    height: 21px;
}

.site-notice-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.site-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    background: var(--theme-surface);
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-notice-link {
    border-color: #d9e2f1;
    background: #f8fbff;
}

.site-notice-support {
    background: var(--theme-surface-warm);
    border-color: #f0dac5;
}

.site-notice-support img {
    flex: 0 0 auto;
}

.site-notice a {
    color: var(--theme-accent);
}

.site-info-panel {
    margin-bottom: 10px;
    padding: 11px 14px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    color: var(--theme-text-soft);
    font-size: 13px;
}

.site-info-panel ul {
    margin: 0;
    padding-left: 18px;
}

.site-info-panel li + li {
    margin-top: 5px;
}

.site-info-panel a {
    color: var(--theme-accent);
}

.site-content {
    display: block;
}

.site-footer {
    margin-top: 14px;
    margin-bottom: 18px;
    padding: 14px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    color: #666;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 1px 8px rgba(20, 24, 32, 0.04);
}

.site-footer-faq {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 14px;
    border: 1px solid var(--theme-accent);
    border-radius: 16px;
    color: var(--theme-accent);
    font-weight: 800;
    text-decoration: none;
}

.site-footer-faq:hover {
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.site-footer-brand {
    margin: 10px 0;
    color: #555;
    font-weight: 700;
}

.site-floating-back {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 3000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d4ad17;
    border-radius: 19px;
    background: #ffd84f;
    color: #413400;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(20, 24, 32, 0.2);
}

.site-floating-back .material-icons {
    font-size: 18px;
}

.site-floating-back:hover {
    background: #f0c733;
}

.site-back-tip {
    position: fixed;
    right: 92px;
    bottom: 14px;
    z-index: 3000;
    padding: 8px 10px;
    border-radius: 16px;
    background: #3b2b2b;
    color: var(--theme-on-media);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(20, 24, 32, 0.2);
}

.site-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
    padding: 9px 10px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
}

.site-page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.site-page-link,
.site-page-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.site-page-link {
    border: 1px solid var(--theme-accent);
    background: var(--theme-surface);
    color: var(--theme-accent);
}

.site-page-link:hover {
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.site-page-link.is-disabled {
    border-color: #ddd;
    background: var(--theme-surface-soft);
    color: #aaa;
}

.site-page-status {
    background: var(--theme-surface-soft);
    color: #555;
}

.site-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

body.site-modern .site-page-jump input {
    width: 54px;
    height: 30px;
    margin: 0;
    padding: 4px 6px;
    border: 1px solid var(--theme-border-strong);
    border-radius: 6px;
    text-align: center;
    font: inherit;
}

.site-page-jump button {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: #2f8f52;
    color: var(--theme-on-media);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.site-page-jump button:hover {
    background: #247341;
}

.site-section-heading {
    margin: 10px 0 8px;
    padding: 11px 14px;
    background: var(--theme-surface);
    border: 1px solid #e6e0d9;
    border-left: 4px solid var(--theme-accent);
    border-radius: 8px;
}

.site-section-heading h2 {
    margin: 0;
    color: var(--theme-text);
    font-size: 18px;
    line-height: 1.25;
}

.site-section-kicker {
    margin-bottom: 3px;
    color: var(--theme-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.home-hero {
    margin: 10px 0;
    padding: 16px;
    background: var(--theme-surface);
    border: 1px solid #e6e0d9;
    border-left: 4px solid var(--theme-accent);
    border-radius: 10px;
}

.home-hero-kicker {
    margin-bottom: 5px;
    color: var(--theme-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    color: var(--theme-text);
    font-size: 22px;
    line-height: 1.25;
}

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.home-link-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    color: var(--theme-text);
    text-decoration: none;
    box-shadow: 0 1px 8px rgba(20, 24, 32, 0.04);
}

.home-link-card:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-accent) 14%, transparent);
    transform: translateY(-1px);
}

.home-link-card span {
    font-size: 14px;
    font-weight: 800;
}

.home-link-card small {
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.3;
}

.home-filter-panel,
.home-feed-panel {
    margin: 10px 0;
    padding: 12px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
}

.home-panel-title {
    margin-bottom: 8px;
    color: #555;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-chip-row a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface-soft);
    color: var(--theme-text-soft);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.home-chip-row a:hover {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.home-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.home-feed-panel {
    margin: 0;
}

.home-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--theme-border);
}

.home-feed-head h2 {
    margin: 0;
    color: var(--theme-text);
    font-size: 16px;
}

.home-feed-head a,
.home-external-link a {
    color: var(--theme-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.home-feed-head a:hover,
.home-external-link a:hover {
    text-decoration: underline;
}

.home-feed-list {
    margin: 0;
    padding-left: 22px;
}

.home-feed-list li {
    margin: 6px 0;
    color: var(--theme-muted);
}

.home-feed-list a {
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-feed-list a:hover {
    color: var(--theme-accent);
}

.home-external-link {
    margin: 12px 0;
    text-align: center;
}

.updates-page-header {
    margin: 10px 0;
    padding: 12px 14px;
    background: var(--theme-surface);
    border: 1px solid #e6e0d9;
    border-left: 4px solid var(--theme-accent);
    border-radius: 8px;
}

.updates-page-eyebrow {
    margin-bottom: 4px;
    color: var(--theme-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.updates-page-header h1 {
    margin: 0;
    color: var(--theme-text);
    font-size: 20px;
    line-height: 1.25;
}

.updates-list {
    display: grid;
    gap: 10px;
    margin: 10px 0;
}

.updates-section {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
}

.updates-section-head {
    padding: 9px 12px;
    background: var(--theme-surface-soft);
    border-bottom: 1px solid var(--theme-border);
    color: #555;
    font-size: 12px;
    font-weight: 800;
}

.updates-section-head a {
    color: var(--theme-accent);
    text-decoration: none;
}

.updates-section-head a:hover {
    text-decoration: underline;
}

.updates-row-list {
    margin: 0;
    padding: 8px 12px 8px 32px;
}

.updates-row-list li {
    margin: 6px 0;
    color: var(--theme-muted);
}

.updates-row-list a,
.updates-file-row a {
    color: #333;
    font-weight: 700;
    text-decoration: none;
}

.updates-row-list a:hover,
.updates-file-row a:hover {
    color: var(--theme-accent);
}

.updates-file-list {
    display: grid;
}

.updates-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.45fr);
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--theme-border);
    font-size: 13px;
}

.updates-file-row:last-child {
    border-bottom: 0;
}

.updates-file-row span {
    min-width: 0;
    color: var(--theme-text-soft);
    overflow-wrap: anywhere;
}

.updates-file-row strong {
    min-width: 0;
    font-size: 12px;
}

.updates-empty {
    padding: 14px 12px;
    color: var(--theme-muted);
    font-size: 13px;
}

.updates-external-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
}

.updates-external-links a {
    color: var(--theme-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.updates-external-links a:hover {
    text-decoration: underline;
}

.delivery-status {
    margin: 10px 0;
    padding: 14px;
    background: var(--theme-surface-warm);
    border: 1px solid #efd5bd;
    border-left: 4px solid var(--theme-accent);
    border-radius: 8px;
    color: var(--theme-text-soft);
    font-size: 14px;
    font-weight: 700;
}

.delivery-status a {
    color: var(--theme-accent);
}

.delivery-card,
.stream-card {
    margin: 10px 0;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20, 24, 32, 0.06);
}

.delivery-series {
    padding: 10px 14px;
    background: var(--theme-surface-soft);
    border-bottom: 1px solid var(--theme-border);
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.delivery-series a {
    color: var(--theme-accent);
    text-decoration: none;
}

.delivery-series a:hover {
    text-decoration: underline;
}

.delivery-file-panel {
    padding: 14px;
}

.delivery-file-panel h1,
.stream-header h1 {
    margin: 0;
    color: var(--theme-text);
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.delivery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.delivery-stats span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 800;
}

.delivery-stats b {
    color: var(--theme-muted);
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.delivery-note {
    margin: 12px 0;
    padding: 12px;
    background: var(--theme-surface-warm);
    border: 1px solid #efd5bd;
    border-radius: 8px;
    color: var(--theme-text-soft);
    font-size: 13px;
}

.delivery-note-pro {
    background: #f5fbf7;
    border-color: #c8e7d1;
}

.delivery-note ul {
    margin: 0;
    padding-left: 18px;
}

.delivery-note li + li {
    margin-top: 6px;
}

.delivery-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 2px 0 10px;
    padding: 4px 10px;
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    color: #555;
    font-size: 12px;
    font-weight: 800;
}

#analytics-download-links {
    display: grid;
    gap: 8px;
    margin: 8px 0;
}

body.site-modern #analytics-download-links ul,
body.site-modern #analytics-download-links ol,
body.site-modern #analytics-download-links .downloadlinks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.site-modern #analytics-download-links li,
body.site-modern #analytics-download-links .downloadlinks li,
body.site-modern #analytics-download-links .downloadlinks2 {
    margin: 0;
    padding: 0;
    background: transparent;
    list-style: none;
    text-align: left;
}

body.site-modern #analytics-download-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    background: var(--theme-accent);
    border-radius: 8px;
    color: var(--theme-on-accent);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--theme-accent) 22%, transparent);
}

body.site-modern #analytics-download-links a:hover {
    background: var(--theme-accent-hover);
}

.delivery-report {
    margin-top: 12px;
    text-align: center;
}

.delivery-report a {
    color: var(--status-bad-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.delivery-report a:hover {
    text-decoration: underline;
}

.delivery-report-thanks {
    display: none;
    color: #2f8f52;
    font-size: 12px;
    font-weight: 800;
}

.stream-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: var(--theme-surface-soft);
    border-bottom: 1px solid var(--theme-border);
}

.stream-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.stream-actions a,
.stream-episode-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--theme-accent);
    border-radius: 15px;
    background: var(--theme-surface);
    color: var(--theme-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.stream-actions a:hover,
.stream-episode-nav a:hover {
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.stream-note {
    padding: 9px 14px;
    color: var(--theme-muted);
    font-size: 12px;
    font-weight: 700;
}

.stream-player-panel {
    padding: 0 14px 14px;
}

.stream-player-panel .video-js {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.stream-episode-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.filelink-card,
.filelink-next,
.filelink-movies {
    margin: 10px 0;
    padding: 14px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 24, 32, 0.06);
}

.filelink-status {
    padding: 12px;
    background: #f5fbf7;
    border: 1px solid #c8e7d1;
    border-radius: 8px;
    color: #225f35;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
}

.filelink-manual {
    margin-top: 10px;
    color: #555;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.filelink-manual a,
.filelink-nav a,
.filelink-next a,
.filelink-movies a {
    color: var(--theme-accent);
    font-weight: 800;
    text-decoration: none;
}

.filelink-manual a:hover,
.filelink-nav a:hover,
.filelink-next a:hover,
.filelink-movies a:hover {
    text-decoration: underline;
}

.filelink-copy {
    display: block;
    margin-top: 12px;
}

.filelink-copy span {
    display: block;
    margin-bottom: 6px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.site-modern .filelink-copy input {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--theme-border-strong);
    border-radius: 8px;
    color: #333;
    font: inherit;
    font-size: 13px;
}

.filelink-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.filelink-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--theme-accent);
    border-radius: 16px;
}

.filelink-nav a:hover {
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    text-decoration: none;
}

.filelink-panel-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 800;
}

.filelink-next a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #333;
}

.filelink-next img {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    object-fit: cover;
}

.filelink-promo {
    margin: 10px 0;
    text-align: center;
}

.filelink-promo img {
    max-width: 100%;
    object-fit: contain;
}

.filelink-movies-main {
    display: inline-flex;
    margin-bottom: 10px;
}

.filelink-movie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filelink-movie-list {
    padding: 10px;
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
}

.filelink-movie-heading {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.filelink-movie-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.filelink-movie-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--theme-border);
    font-size: 13px;
}

.filelink-movie-list li:first-child {
    border-top: 0;
}

.filelink-movie-list small {
    flex: 0 0 auto;
    color: var(--theme-muted);
    font-size: 11px;
}


@media (max-width: 620px) {
    body.site-modern {
        padding-left: 8px;
        padding-right: 8px;
    }

    .site-header-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .site-brand {
        justify-content: center;
    }

    .site-brand img {
        width: min(330px, 88vw);
    }

    .site-header-actions {
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    .site-theme-switcher,
    .site-theme-toggle {
        width: 100%;
    }

    .site-theme-menu {
        left: 0;
        right: 0;
    }

    .site-account,
    .site-auth {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .site-search-row {
        flex-direction: column;
    }

    body.site-modern .site-search-submit {
        width: 100%;
    }

    .site-social {
        justify-content: center;
        text-align: center;
    }

    .site-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .site-page-links {
        justify-content: center;
    }

    .site-page-jump {
        justify-content: center;
    }

    .site-back-tip {
        right: 82px;
        max-width: 160px;
    }

    .home-feed-grid {
        grid-template-columns: 1fr;
    }

    .updates-file-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .stream-header {
        flex-direction: column;
    }

    .stream-actions {
        justify-content: flex-start;
    }

    .filelink-next a,
    .filelink-movie-grid {
        grid-template-columns: 1fr;
    }

    .filelink-next img {
        width: 100%;
        height: auto;
        max-height: 180px;
    }
}
