/* ============================================================
   CSS Variables — Canada.ca inspired
   White body · Maple red accent · Slate-blue nav & links · Clean government portal
   ============================================================ */
:root {
    --ca-red:       #b5121b;
    --ca-red-dk:    #8f0e15;
    --ca-blue:      #26374a;
    --ca-blue-lt:   #284162;
    --ca-blue-lnk:  #2b4380;
    --ca-teal:      #1c578a;
    --ca-body:      #f8f8f8;
    --ca-surface:   #ffffff;
    --ca-border:    #ddd;
    --ca-border2:   #bbb;
    --ca-text:      #333333;
    --ca-text2:     #555555;
    --ca-text3:     #767676;
    --ca-radius:    4px;
    --ca-shadow:    0 1px 3px rgba(0,0,0,0.08);
    --ca-shadow-md: 0 2px 10px rgba(0,0,0,0.10);
    --ca-font:      'Noto Sans SC','PingFang SC','Microsoft YaHei',Arial,sans-serif;
    --ca-ease:      0.15s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: var(--ca-font);
    background: var(--ca-body);
    color: var(--ca-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ca-blue-lnk); text-decoration: none; }
a:hover { color: var(--ca-red); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
.cv {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

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

/* ===== SITE HEADER ===== */
.gc-masthead {
    background: var(--ca-surface);
    border-bottom: 3px solid var(--ca-red);
    padding: 10px 0;
}

.gc-masthead-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Brand */
.gc-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ca-blue);
    font-style: normal;
    text-decoration: none;
    border: none;
    letter-spacing: -0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.gc-brand-name:hover { color: var(--ca-red); text-decoration: none; }

/* Domain display */
.gc-domain-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-left: 3px solid var(--ca-red);
}
.gc-domain-caption {
    font-size: 0.68rem;
    color: var(--ca-text3);
    white-space: nowrap;
    font-weight: 500;
}
.gc-domain-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ca-blue);
}

/* ===== CATEGORY NAV ===== */
.gc-nav-panel {
    background: var(--ca-blue);
}

.gc-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    min-height: 36px;
}
.gc-nav-row:last-child { border-bottom: none; }

.gc-zone-badge {
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ca-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    padding: 4px 2px;
    line-height: 1.2;
}

.gc-zone-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 3px 6px;
    gap: 2px;
}

.gc-zone-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: var(--ca-radius);
    font-size: 0.83rem;
    color: rgba(255,255,255,0.88);
    transition: background var(--ca-ease), color var(--ca-ease);
    white-space: nowrap;
    flex: 1;
    text-align: center;
    min-width: 0;
    text-decoration: none;
}
.gc-zone-list a:hover {
    background: var(--ca-red);
    color: #fff;
    text-decoration: none;
}
.gc-zone-list a.active {
    background: var(--ca-red);
    color: #fff;
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.gc-search-strip {
    background: var(--ca-surface);
    padding: 9px 0;
    border-bottom: 1px solid var(--ca-border);
}

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

.gc-search-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--ca-border2);
    border-radius: var(--ca-radius);
    font-size: 0.88rem;
    font-family: var(--ca-font);
    color: var(--ca-text);
    background: var(--ca-surface);
    outline: none;
    transition: border-color var(--ca-ease);
}
.gc-search-form input[type="text"]:focus {
    border-color: var(--ca-teal);
    box-shadow: 0 0 0 2px rgba(28,87,138,0.15);
}

.gc-search-form button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--ca-radius);
    font-size: 0.82rem;
    font-family: var(--ca-font);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--ca-ease), background var(--ca-ease);
    flex-shrink: 0;
    font-weight: 600;
}
.gc-search-form button:not([value]) {
    background: var(--ca-blue);
    color: #fff;
}
.gc-search-form button[value="1"] {
    background: var(--ca-teal);
    color: #fff;
}
.gc-search-form button[value="2"] {
    background: var(--ca-red);
    color: #fff;
}
.gc-search-form button:hover { opacity: 0.82; }

/* ===== HOT TAGS ===== */
.gc-hot-block {
    background: var(--ca-surface);
    border-radius: var(--ca-radius);
    border: 1px solid var(--ca-border);
    border-left: 4px solid var(--ca-red);
    padding: 8px 13px;
    margin: 5px 0;
    box-shadow: var(--ca-shadow);
}
.gc-hot-heading {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ca-blue);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gc-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}
.gc-tag-link {
    display: inline-block;
    padding: 3px 10px;
    background: var(--ca-body);
    border: 1px solid var(--ca-border2);
    border-radius: 3px;
    font-size: 0.78rem;
    color: var(--ca-blue-lnk);
    text-decoration: none;
    transition: all var(--ca-ease);
}
.gc-tag-link:hover {
    background: var(--ca-blue);
    color: #fff;
    border-color: var(--ca-blue);
    text-decoration: none;
}

/* ===== SECTION CARD ===== */
.gc-section {
    background: var(--ca-surface);
    border-radius: var(--ca-radius);
    border: 1px solid var(--ca-border);
    box-shadow: var(--ca-shadow);
    margin: 6px 0;
    overflow: hidden;
}

.gc-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 8px;
    border-bottom: 3px solid var(--ca-red);
    background: var(--ca-surface);
}

.gc-sec-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--ca-blue);
    padding-left: 10px;
    position: relative;
}
.gc-sec-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1em;
    background: var(--ca-red);
    border-radius: 2px;
}
.gc-sec-title a { color: inherit; text-decoration: none; }
.gc-sec-title a:hover { color: var(--ca-red); text-decoration: none; }

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

.gc-film-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--ca-radius);
    overflow: hidden;
    background: var(--ca-body);
    border: 1px solid var(--ca-border);
    transition: transform var(--ca-ease), box-shadow var(--ca-ease);
}
.gc-film-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ca-shadow-md);
}

.gc-film-img {
    display: block;
    position: relative;
    overflow: hidden;
    background: #d0d0d0;
    aspect-ratio: 600 / 350;
}
.gc-film-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.gc-film-card:hover .gc-film-img img {
    transform: scale(1.04);
}

.gc-film-txt {
    padding: 5px 7px 6px;
}
.gc-film-txt h5 {
    font-size: 0.77rem;
    font-weight: 500;
    color: var(--ca-text);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.gc-film-txt h5 a { color: var(--ca-blue-lnk); text-decoration: none; }
.gc-film-txt h5 a:hover { color: var(--ca-red); text-decoration: underline; }

/* ===== DETAIL TITLE BAR ===== */
.gc-title-band {
    background: var(--ca-blue);
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    border-radius: var(--ca-radius);
    margin: 7px 0;
    font-size: 1rem;
    line-height: 1.75;
    word-break: break-all;
    border-left: 5px solid var(--ca-red);
}
.gc-title-band .gc-cat-link {
    color: #f5c842;
    font-weight: 700;
    margin-right: 8px;
    text-decoration: none;
}
.gc-title-band .gc-cat-link:hover { color: #ffe878; text-decoration: underline; }

.gc-specs-box {
    background: var(--ca-surface);
    border: 1px solid var(--ca-border);
    border-left: 4px solid var(--ca-teal);
    border-radius: var(--ca-radius);
    padding: 18px 20px;
    font-size: 0.92rem;
    line-height: 1.95;
    margin: 6px 0;
    box-shadow: var(--ca-shadow);
}

.gc-preview-area { margin-top: 10px; }
.gc-preview-area picture,
.gc-preview-area img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--ca-radius);
}

/* ===== DOWNLOAD BUTTONS ===== */
.gc-action-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
}
.gc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--ca-radius);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: var(--ca-font);
    transition: opacity var(--ca-ease);
    text-decoration: none;
    letter-spacing: 0.1px;
}
.gc-action-btn:hover { opacity: 0.84; text-decoration: none; }
.gc-btn-blue    { background: var(--ca-blue);  color: #fff; }
.gc-btn-red     { background: var(--ca-red);   color: #fff; }
.gc-btn-teal    { background: var(--ca-teal);  color: #fff; }
.gc-btn-outline {
    background: transparent;
    color: var(--ca-blue);
    border: 2px solid var(--ca-blue);
}
.gc-btn-outline:hover { background: var(--ca-blue); color: #fff; opacity: 1; }

/* ===== CLIENT DL ===== */
.gc-client-dl { text-align: center; padding: 7px 0; }
.gc-client-dl a { color: var(--ca-teal); font-size: 0.85rem; font-weight: 600; text-decoration: underline; }
.gc-client-dl a:hover { color: var(--ca-red); }

/* ===== SHARE STRIP ===== */
.gc-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    background: #eef2f8;
    border: 1px solid var(--ca-border);
    border-left: 4px solid var(--ca-teal);
    border-radius: var(--ca-radius);
    margin: 7px 0;
    flex-wrap: wrap;
}
.gc-share-url-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
}
.gc-share-lbl { font-size: 0.74rem; color: var(--ca-text3); white-space: nowrap; flex-shrink: 0; font-weight: 600; }
.gc-share-url-str {
    font-size: 0.78rem;
    color: var(--ca-text2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gc-share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--ca-blue);
    color: #fff;
    border: none;
    border-radius: var(--ca-radius);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ca-font);
    transition: background var(--ca-ease);
    flex-shrink: 0;
}
.gc-share-copy-btn:hover { background: var(--ca-red); }

/* ===== PAGINATION ===== */
.gc-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 13px 0 5px;
}
.gc-pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--ca-radius);
    font-size: 0.84rem;
    background: var(--ca-surface);
    border: 1.5px solid var(--ca-border2);
    color: var(--ca-blue-lnk);
    font-weight: 600;
    transition: all var(--ca-ease);
    text-decoration: none;
}
.gc-pg:hover { background: var(--ca-blue); border-color: var(--ca-blue); color: #fff; text-decoration: none; }
.gc-pg-now {
    background: var(--ca-red);
    border-color: var(--ca-red);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

/* ===== FOOTER LINKS ===== */
.gc-links-panel {
    background: var(--ca-surface);
    border-radius: var(--ca-radius);
    border: 1px solid var(--ca-border);
    margin: 6px 0;
    overflow: hidden;
    box-shadow: var(--ca-shadow);
}
.gc-links-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    margin: 0;
}
.gc-links-dl dd { margin: 0; }
.gc-links-dl a {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.77rem;
    color: var(--ca-blue-lnk);
    border-radius: var(--ca-radius);
    text-decoration: none;
    transition: all var(--ca-ease);
    text-decoration: underline;
}
.gc-links-dl a:hover { background: var(--ca-blue); color: #fff; text-decoration: none; }

/* ===== SITE FOOTER ===== */
.gc-footer {
    background: var(--ca-blue);
    color: rgba(255,255,255,0.55);
    padding: 12px 0;
    margin-top: 8px;
    border-top: 4px solid var(--ca-red);
}
.gc-footer-copy {
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.75;
}

/* ===== VISIBILITY ===== */
.d-desk   { display: block; }
.d-mob    { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mobile ≤767px */
@media (max-width: 767px) {
    .d-desk  { display: none !important; }
    .d-mob   { display: block !important; }

    .gc-brand-name    { font-size: 1.05rem; }
    .gc-domain-value  { font-size: 0.85rem; }
    .gc-domain-caption { font-size: 0.62rem; }

    /* Zone nav: 15% badge / 85% links, 4 per row */
    .gc-zone-badge {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        letter-spacing: 0;
        padding: 3px 1px;
        line-height: 1.2;
    }
    .gc-zone-list {
        width: 85%;
        flex: none;
        padding: 3px 3px;
        gap: 2px;
    }
    .gc-zone-list a {
        flex: 0 0 calc(25% - 2px);
        font-size: 12px;
        padding: 4px 1px;
        text-align: center;
    }

    /* Search: no wrap */
    .gc-search-form { flex-wrap: nowrap; gap: 4px; }
    .gc-search-form input[type="text"] { font-size: 0.78rem; padding: 6px 8px; }
    .gc-search-form button { font-size: 0.72rem; padding: 6px 6px; flex-shrink: 0; }

    /* Film grid: 2 cols */
    .gc-film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        padding: 8px;
    }
    .gc-film-txt h5 { font-size: 0.72rem; }
}

/* Large phones 480-767 */
@media (min-width: 480px) and (max-width: 767px) {
    .gc-zone-list a { font-size: 13px; }
}
@media (max-width: 479px) {
    .gc-zone-list a { font-size: 12px; }
}

/* PC ≥768px */
@media (min-width: 768px) {
    .gc-film-grid { grid-template-columns: repeat(4, 1fr); }
    .gc-zone-badge  { width: 70px; font-size: 0.74rem; }
    .gc-zone-list { display: flex; flex-wrap: nowrap; }
    .gc-zone-list a { flex: 1; font-size: 0.86rem; }
}
