/* G1 Globo Theme — White + Editorial Red + Teal */

:root {
    --g1-red:          #e8231a;
    --g1-red-dark:     #b81a13;
    --g1-red-pale:     #fdf0ef;
    --g1-teal:         #006b82;
    --g1-teal-dark:    #004f60;
    --g1-teal-pale:    #e6f3f6;
    --g1-orange:       #e87722;
    --g1-green:        #1a8c3c;
    --g1-white:        #ffffff;
    --g1-offwhite:     #fafafa;
    --g1-light:        #f4f4f4;
    --g1-border:       #e8e8e8;
    --g1-border-pale:  #f0f0f0;
    --g1-text:         #1a1a1a;
    --g1-text-soft:    #444444;
    --g1-text-muted:   #888888;
    --g1-shadow:       rgba(0,0,0,0.06);
    --g1-shadow-md:    rgba(232,35,26,0.15);
    --g1-radius:       3px;
    --g1-radius-md:    6px;
    --g1-radius-pill:  999px;
    --g1-trs:          all 0.18s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial,
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--g1-white);
    color: var(--g1-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.g1-topbar {
    background: var(--g1-white);
    border-bottom: 2px solid var(--g1-red);
    box-shadow: 0 1px 4px var(--g1-shadow);
}

.g1-topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.g1-site-link {
    text-decoration: none;
    flex-shrink: 0;
    display: inline-block;
}

.g1-site-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--g1-red);
    letter-spacing: -0.5px;
    line-height: 1;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.g1-site-link:hover .g1-site-name {
    color: var(--g1-red-dark);
}

.g1-domain-wrap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    background: var(--g1-teal);
    border-radius: var(--g1-radius-md);
    padding: 5px 15px 5px 12px;
}

.g1-domain-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.g1-domain-addr {
    font-size: 17px;
    font-weight: 800;
    color: var(--g1-white);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ===================== LAYOUT ===================== */
.g1-outer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.g1-row {
    padding: 6px 0;
}

/* ===================== NAV ===================== */
.g1-navpanel {
    background: var(--g1-white);
    border: 1px solid var(--g1-border);
    border-radius: var(--g1-radius-md);
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px var(--g1-shadow);
}

.g1-navline {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--g1-border-pale);
}

.g1-navline:last-child {
    border-bottom: none;
}

.g1-navzone {
    background: var(--g1-teal);
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    font-weight: 800;
    width: 10%;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    border-right: 3px solid var(--g1-red);
}

.g1-navitems {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--g1-white);
}

.g1-navitems a {
    display: inline-block;
    color: var(--g1-teal);
    text-decoration: none;
    padding: 4px 7px;
    border-radius: var(--g1-radius);
    transition: var(--g1-trs);
    background: var(--g1-offwhite);
    border: 1px solid var(--g1-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.g1-navitems a:hover {
    background: var(--g1-red);
    color: var(--g1-white);
    border-color: var(--g1-red-dark);
    font-weight: 700;
}

.g1-navitems a.active {
    background: var(--g1-red);
    color: var(--g1-white);
    border-color: var(--g1-red-dark);
    font-weight: 800;
    box-shadow: 0 2px 6px var(--g1-shadow-md);
}

/* ===================== SEARCH ===================== */
.g1-search {
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    padding: 11px 14px;
    margin-bottom: 6px;
    border: 1px solid var(--g1-border);
    box-shadow: 0 1px 3px var(--g1-shadow);
}

.g1-search form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.g1-search input[type="text"] {
    flex: 1;
    min-width: 130px;
    padding: 9px 13px;
    border: 2px solid var(--g1-border);
    border-radius: var(--g1-radius);
    background: var(--g1-offwhite);
    color: var(--g1-text);
    font-size: 14px;
    transition: var(--g1-trs);
    outline: none;
}

.g1-search input[type="text"]:focus {
    border-color: var(--g1-teal);
    background: var(--g1-white);
    box-shadow: 0 0 0 3px rgba(0,107,130,0.10);
}

.g1-search input[type="text"]::placeholder {
    color: var(--g1-text-muted);
}

.g1-search button {
    padding: 9px 16px;
    border: 2px solid var(--g1-red-dark);
    border-radius: var(--g1-radius);
    background: var(--g1-red);
    color: var(--g1-white);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--g1-trs);
    white-space: nowrap;
    flex-shrink: 0;
}

.g1-search button:hover {
    background: var(--g1-red-dark);
}

/* ===================== HOT TAGS ===================== */
.g1-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px 13px;
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    margin-bottom: 6px;
    border: 1px solid var(--g1-border);
    border-left: 3px solid var(--g1-red);
    box-shadow: 0 1px 3px var(--g1-shadow);
}

.g1-tagitem {
    padding: 5px 12px;
    background: var(--g1-light);
    border-radius: var(--g1-radius-pill);
    color: var(--g1-teal);
    text-decoration: none;
    font-size: 12px;
    transition: var(--g1-trs);
    border: 1px solid var(--g1-border);
    font-weight: 600;
}

.g1-tagitem:hover {
    background: var(--g1-red);
    color: var(--g1-white);
    border-color: var(--g1-red-dark);
}

/* ===================== SECTION BLOCK ===================== */
.g1-section {
    margin-bottom: 6px;
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    border: 1px solid var(--g1-border);
    box-shadow: 0 1px 3px var(--g1-shadow);
    overflow: hidden;
}

.g1-section-body {
    padding: 13px 15px 16px;
}

.g1-section-head {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--g1-border-pale);
    position: relative;
}

.g1-section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--g1-red);
}

.g1-section-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--g1-red);
    letter-spacing: -0.2px;
}

.g1-section-title a {
    color: var(--g1-red);
    text-decoration: none;
    transition: var(--g1-trs);
}

.g1-section-title a:hover {
    color: var(--g1-red-dark);
    text-decoration: underline;
}

/* ===================== FILM GRID ===================== */
.g1-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.g1-grid li {
    position: relative;
}

.g1-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--g1-radius);
    aspect-ratio: 600 / 350;
    background: var(--g1-light);
    border: 1px solid var(--g1-border);
}

.g1-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.g1-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(184,26,19,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.g1-cover:hover {
    border-color: var(--g1-red);
    box-shadow: 0 3px 14px var(--g1-shadow-md);
}

.g1-cover:hover::after {
    opacity: 1;
}

.g1-cover:hover img {
    transform: scale(1.05);
}

.g1-info {
    padding: 7px 0 3px;
}

.g1-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.g1-info h5 a {
    color: var(--g1-text);
    text-decoration: none;
    transition: var(--g1-trs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g1-info h5 a:hover {
    color: var(--g1-red);
}

/* ===================== DETAIL TITLE BAR ===================== */
.g1-headline {
    line-height: 1.8;
    text-align: center;
    padding: 15px 18px;
    font-size: 17px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--g1-red);
    border-radius: var(--g1-radius-md);
    color: var(--g1-white);
    border-bottom: 3px solid var(--g1-red-dark);
}

.g1-headline a {
    color: rgba(255,255,255,0.82) !important;
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

.g1-specbox {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    margin: 8px 0;
    border: 1px solid var(--g1-border);
    border-left: 4px solid var(--g1-teal);
    box-shadow: 0 1px 3px var(--g1-shadow);
    color: var(--g1-text);
}

/* ===================== VIDEO PLAYER ===================== */
.video-container {
    width: 100%;
    height: 610px;
    max-height: 610px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--g1-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 18px var(--g1-shadow-md);
    position: relative;
    border: 2px solid var(--g1-border);
}

.video-container iframe,
.video-container video,
.video-container #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--g1-radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px var(--g1-shadow-md);
    border: 2px solid var(--g1-border);
}

/* ===================== TORRENT PREVIEW ===================== */
.g1-preview picture {
    display: block;
    width: 100%;
}

.g1-preview img,
.g1-preview .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--g1-radius);
    border: 1px solid var(--g1-border);
}

.g1-preview .img_item {
    width: 100%;
}

/* ===================== ACTION BUTTONS ===================== */
.g1-actions {
    text-align: center;
    padding: 13px;
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    margin: 10px 0;
    border: 1px solid var(--g1-border);
    box-shadow: 0 1px 3px var(--g1-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--g1-red);
    color: var(--g1-white);
    text-decoration: none;
    border-radius: var(--g1-radius);
    font-weight: 800;
    font-size: 14px;
    transition: var(--g1-trs);
    margin: 0;
    border: 2px solid var(--g1-red-dark);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.down_btn:hover {
    background: var(--g1-teal);
    color: var(--g1-white);
    border-color: var(--g1-teal-dark);
    box-shadow: 0 4px 12px rgba(0,107,130,0.25);
}

/* ===================== SHARE SECTION ===================== */
.share-section {
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    padding: 13px;
    margin: 10px 0;
    border: 1px solid var(--g1-border);
    box-shadow: 0 1px 3px var(--g1-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--g1-offwhite);
    border: 1px solid var(--g1-border);
    border-radius: var(--g1-radius);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--g1-teal);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--g1-text-soft);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--g1-teal);
    color: var(--g1-white);
    border: 2px solid var(--g1-teal-dark);
    border-radius: var(--g1-radius);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--g1-trs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--g1-red);
    border-color: var(--g1-red-dark);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

.share-icon {
    font-size: 15px;
}

/* ===================== PAGINATION ===================== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--g1-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--g1-trs);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--g1-white);
    color: var(--g1-teal);
    border: 1px solid var(--g1-border);
}

.a_page_info:hover {
    background: var(--g1-red);
    border-color: var(--g1-red-dark);
    color: var(--g1-white);
    font-weight: 800;
}

.page_info_focus {
    background: var(--g1-red);
    color: var(--g1-white);
    border: 2px solid var(--g1-red-dark);
    cursor: default;
    font-weight: 900;
}

/* ===================== FOOTER ===================== */
.g1-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--g1-red);
    margin-top: 10px;
    background: var(--g1-white);
}

.g1-footer p {
    margin: 6px 0;
    color: var(--g1-text-muted);
    font-size: 13px;
}

.g1-footer a {
    color: var(--g1-text-muted);
    text-decoration: none;
    transition: var(--g1-trs);
}

.g1-footer a:hover {
    color: var(--g1-red);
}

.g1-flinks {
    padding: 11px 13px;
    background: var(--g1-white);
    border-radius: var(--g1-radius-md);
    border: 1px solid var(--g1-border);
}

.g1-flinks dl { margin: 0; }

.g1-flinks dd {
    display: inline-block;
    margin: 3px 4px;
}

.g1-flinks a {
    color: var(--g1-teal);
    text-decoration: none;
    font-size: 13px;
    transition: var(--g1-trs);
}

.g1-flinks a:hover {
    color: var(--g1-red);
    text-decoration: underline;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .g1-outer { padding: 0 8px; }

    .g1-topbar-inner {
        padding: 7px 8px;
        gap: 10px;
    }

    .g1-site-name { font-size: 20px; }
    .g1-domain-addr { font-size: 13px; }
    .g1-domain-label { font-size: 9px; }
    .g1-domain-wrap { padding: 4px 11px 4px 9px; gap: 6px; }
    .g1-row { padding: 4px 0; }

    /* Nav mobile: 15% zone + 85% links, 4 per row */
    .g1-navzone {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 7px 2px;
        border-right-width: 2px;
    }

    .g1-navitems {
        width: 85%;
        gap: 3px;
        padding: 6px 5px;
    }

    .g1-navitems a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .g1-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .g1-info h5 { font-size: 12px; }
    .g1-section-title { font-size: 15px; }

    .video-container {
        height: 56.25vw;
        max-height: 370px;
        margin-bottom: 10px;
    }

    .g1-actions { padding: 10px 8px; gap: 7px; }
    .down_btn { padding: 9px 13px; font-size: 12px; }
    .share-section { padding: 9px; gap: 7px; }
    .share-url-display { padding: 7px 10px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 11px; font-size: 11px; }
    .g1-taglist { padding: 9px 11px; gap: 5px; }
    .g1-tagitem { padding: 4px 10px; font-size: 11px; }
    .g1-search { padding: 9px 10px; }
    .g1-search input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .g1-search button { padding: 8px 10px; font-size: 12px; }
    .g1-section-body { padding: 10px 11px 12px; }
    .a_page_info, .page_info_focus { padding: 6px 10px; font-size: 12px; min-width: 30px; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .g1-navzone { font-size: 10px; }
    .g1-navitems a { font-size: 14px; }
}

@media (max-width: 480px) {
    .g1-site-name { font-size: 17px; }

    .g1-navzone { width: 15%; font-size: 10px; padding: 6px 2px; }
    .g1-navitems { width: 85%; gap: 3px; padding: 5px 4px; }
    .g1-navitems a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .g1-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .down_btn { padding: 8px 10px; font-size: 11px; }
    .share-section { flex-wrap: nowrap; gap: 5px; }
    .share-copy-btn { padding: 7px 9px; font-size: 10px; }
    .share-icon { font-size: 13px; }
}

/* ===================== UTILITIES ===================== */
.hide_mobile { display: block; }
.hide_pc     { display: block; }

@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc     { display: none !important; } }

.clearfix::after { content: ""; display: table; clear: both; }

img[data-original] { background: var(--g1-light); }

/* ===================== PC: 4 columns ===================== */
@media (min-width: 769px) {
    .g1-grid { grid-template-columns: repeat(4, 1fr); }
    .g1-navzone { font-size: 13px; }
    .g1-navitems a { font-size: 13px; }
}
