/* Media Portal — Gobierno de México Wine & Ivory Theme */

:root {
    --gob-wine:       #6d1130;
    --gob-wine-dk:    #550d25;
    --gob-wine-lt:    #8c1a3f;
    --gob-wine-pale:  #f5e8ec;
    --gob-wine-bg:    #fdf0f3;
    --gob-wine-border:#d4a0b0;
    --gob-wine-glow:  rgba(109,17,48,.18);

    --gob-rose:       #a52050;
    --gob-rose-lt:    #c4356a;
    --gob-gold:       #c8973a;
    --gob-gold-lt:    #e0b050;

    --gob-bg:         #f5f5f6;
    --gob-bg-2:       #ebebec;
    --gob-surface:    #ffffff;
    --gob-surface-2:  #fafafa;

    --gob-border:     #dddde0;
    --gob-border-lt:  #e8e8eb;
    --gob-border-hdr: #550d25;

    --gob-txt:        #1c1c1e;
    --gob-txt-mid:    #48484f;
    --gob-txt-muted:  #808088;
    --gob-txt-dim:    #aaaab0;
    --gob-white:      #ffffff;

    --gob-grad-hdr:   linear-gradient(90deg, #550d25 0%, #6d1130 60%, #7a1538 100%);
    --gob-grad-wine:  linear-gradient(135deg, #550d25 0%, #8c1a3f 100%);
    --gob-grad-btn:   linear-gradient(135deg, #6d1130 0%, #a52050 100%);

    --gob-shadow-sm:  0 1px 3px rgba(0,0,0,.07);
    --gob-shadow-md:  0 2px 10px rgba(0,0,0,.10);
    --gob-shadow-lg:  0 6px 24px rgba(0,0,0,.13);
    --gob-shadow-w:   0 3px 12px rgba(109,17,48,.28);

    --r:    6px;
    --r-sm: 3px;
    --r-lg: 10px;
    --ease: all 0.18s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gob-bg);
    color: var(--gob-txt);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.header {
    background: var(--gob-grad-hdr);
    border-bottom: 2px solid var(--gob-border-hdr);
    padding: 9px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--ease);
}
.brand-link:hover { opacity: .85; }

.brand-name {
    font-size: 25px;
    font-weight: 800;
    color: var(--gob-white);
    letter-spacing: -.2px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    background: rgba(255,255,255,.15);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.30);
}

.domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.80);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.domain-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--gob-white);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: .1px;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ── CONTAINER ── */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}
.content { padding: 7px 0; }

/* ── NAV ── */
.navbox {
    background: var(--gob-surface);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--gob-border);
    box-shadow: var(--gob-shadow-sm);
}

.navline {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--gob-border-lt);
}
.navline:last-child { border-bottom: none; }

.navline .zone-tag {
    font-weight: 700;
    font-size: 12px;
    color: var(--gob-white);
    background: var(--gob-wine);
    white-space: nowrap;
    width: 10%;
    min-width: 56px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    letter-spacing: .2px;
}

.navline .zone-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--gob-surface);
}

.navline .zone-links a {
    display: inline-block;
    color: var(--gob-txt-mid);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    background: var(--gob-bg);
    border: 1px solid var(--gob-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.navline .zone-links a:hover {
    background: var(--gob-wine);
    color: var(--gob-white);
    border-color: var(--gob-wine-dk);
}

.navline .zone-links a.active {
    background: var(--gob-wine);
    color: var(--gob-white);
    border-color: var(--gob-wine-dk);
    font-weight: 700;
}

/* compat aliases */
.nav-container { background: var(--gob-surface); border-radius: var(--r); overflow: hidden; margin-bottom: 7px; border: 1px solid var(--gob-border); box-shadow: var(--gob-shadow-sm); }
.nav-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--gob-border-lt); }
.nav-row:last-child { border-bottom: none; }
.nav-row .nav-label { font-weight: 700; font-size: 12px; color: var(--gob-white); background: var(--gob-wine); white-space: nowrap; width: 10%; min-width: 56px; text-align: center; display: flex; align-items: center; justify-content: center; padding: 9px 5px; flex-shrink: 0; }
.nav-row .nav-links { font-size: 13px; width: 90%; display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; align-items: center; background: var(--gob-surface); }
.nav-row .nav-links a { display: inline-block; color: var(--gob-txt-mid); text-decoration: none; padding: 4px 4px; border-radius: var(--r-sm); transition: var(--ease); background: var(--gob-bg); border: 1px solid var(--gob-border); white-space: nowrap; text-align: center; font-size: 13px; width: calc((100% - 35px) / 8); flex-shrink: 0; flex-grow: 0; }
.nav-row .nav-links a:hover { background: var(--gob-wine); color: var(--gob-white); border-color: var(--gob-wine-dk); }
.nav-row .nav-links a.active { background: var(--gob-wine); color: var(--gob-white); border-color: var(--gob-wine-dk); font-weight: 700; }

/* ── SEARCH ── */
.seach {
    background: var(--gob-surface);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--gob-border);
    box-shadow: var(--gob-shadow-sm);
}

.seach form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 16px;
    border: 1px solid var(--gob-border);
    border-radius: 22px;
    background: var(--gob-bg);
    color: var(--gob-txt);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}
.seach input[type="text"]:focus {
    border-color: var(--gob-wine);
    background: var(--gob-white);
    box-shadow: 0 0 0 2px var(--gob-wine-glow);
}
.seach input[type="text"]::placeholder { color: var(--gob-txt-dim); }

.seach button {
    padding: 9px 16px;
    border: none;
    border-radius: 22px;
    background: var(--gob-grad-btn);
    color: var(--gob-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .2px;
}
.seach button:hover {
    background: var(--gob-wine-lt);
    box-shadow: var(--gob-shadow-w);
}

/* ── TAG CLOUD ── */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px;
    background: var(--gob-surface);
    border-radius: var(--r);
    margin-bottom: 7px;
    border: 1px solid var(--gob-border);
    box-shadow: var(--gob-shadow-sm);
}

.grid-item {
    padding: 4px 13px;
    background: var(--gob-wine-pale);
    border-radius: 20px;
    color: var(--gob-wine);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--gob-wine-border);
    font-weight: 600;
}
.grid-item:hover {
    background: var(--gob-wine);
    color: var(--gob-white);
    border-color: var(--gob-wine-dk);
}

/* ── SECTION BLOCKS ── */
.mhlleset { margin-bottom: 12px; }

.mhlleset-heading {
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--gob-wine);
    position: relative;
}

.mhlleset-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--gob-txt);
}
.mhlleset-title a { color: var(--gob-txt); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--gob-wine); }

/* ── MEDIA GRID ── */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}
.thumbnail2-group li { position: relative; }

@keyframes gobFade {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}
.thumbnail2-group li:nth-child(1){animation:gobFade .28s ease .03s both}
.thumbnail2-group li:nth-child(2){animation:gobFade .28s ease .07s both}
.thumbnail2-group li:nth-child(3){animation:gobFade .28s ease .11s both}
.thumbnail2-group li:nth-child(4){animation:gobFade .28s ease .15s both}
.thumbnail2-group li:nth-child(5){animation:gobFade .28s ease .19s both}
.thumbnail2-group li:nth-child(6){animation:gobFade .28s ease .23s both}
.thumbnail2-group li:nth-child(7){animation:gobFade .28s ease .27s both}
.thumbnail2-group li:nth-child(8){animation:gobFade .28s ease .31s both}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--gob-bg-2);
    border: 1px solid var(--gob-border);
    box-shadow: var(--gob-shadow-sm);
}
.thumbnail2 img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
    display: block;
}
.thumbnail2:hover {
    border-color: var(--gob-wine);
    box-shadow: 0 0 0 1.5px var(--gob-wine), var(--gob-shadow-md);
}
.thumbnail2:hover img { transform: scale(1.05); }
.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(85,13,37,.75) 0%, transparent 52%);
    opacity: 0;
    transition: opacity .24s ease;
}
.thumbnail2:hover::after { opacity: 1; }
.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(.7);
    color: var(--gob-white);
    font-size: 24px;
    opacity: 0;
    transition: all .24s ease;
    z-index: 2;
    text-shadow: 0 0 18px rgba(109,17,48,.9);
}
.thumbnail2:hover::before { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.video-info { padding: 5px 0 2px; }
.video-info h5 { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.45; }
.video-info h5 a {
    color: var(--gob-txt-mid);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-info h5 a:hover { color: var(--gob-wine); }

/* ── VIDEO PLAYER ── */
.video-container {
    width: 100%; height: 640px; max-height: 640px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--gob-shadow-lg);
}
.video-container iframe,
.video-container video,
.video-container #video-container { width:100%; height:100%; border:none; }

.MacPlayer {
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--gob-shadow-lg);
}

/* ── TORRENT CAPTURES ── */
.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%; height: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--gob-border);
    display: block;
}
.torrent-capture-grid .img_item { width: 100%; }

/* ── DOWNLOAD BUTTONS ── */
.download {
    text-align: center;
    padding: 14px;
    background: var(--gob-surface);
    border-radius: var(--r);
    margin: 12px 0;
    border: 1px solid var(--gob-border);
    box-shadow: var(--gob-shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: transparent;
    color: var(--gob-wine);
    text-decoration: none;
    border-radius: 22px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    margin: 0;
    border: 1.5px solid var(--gob-wine);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: .2px;
}
.down_btn:hover {
    background: var(--gob-wine);
    color: var(--gob-white);
    box-shadow: var(--gob-shadow-w);
}

/* ── SHARE ── */
.share-section {
    background: var(--gob-surface);
    border-radius: var(--r);
    padding: 12px 15px;
    margin: 12px 0;
    border: 1px solid var(--gob-border);
    box-shadow: var(--gob-shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--gob-bg);
    border: 1px solid var(--gob-border);
    border-radius: 22px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 10px;
    color: var(--gob-wine);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.share-url {
    font-size: 12px;
    color: var(--gob-txt-muted);
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 9px 16px;
    background: transparent;
    color: var(--gob-wine);
    border: 1.5px solid var(--gob-wine);
    border-radius: 22px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.share-copy-btn:hover {
    background: var(--gob-wine);
    color: var(--gob-white);
    box-shadow: var(--gob-shadow-w);
}
.share-copy-btn:active { transform: scale(.97); }
.share-icon { font-size: 14px; }

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

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

.a_page_info { background: var(--gob-surface); color: var(--gob-txt-mid); border: 1px solid var(--gob-border); }
.a_page_info:hover { background: var(--gob-wine); border-color: var(--gob-wine-dk); color: var(--gob-white); }
.page_info_focus { background: var(--gob-wine); color: var(--gob-white); border: 1px solid var(--gob-wine-dk); cursor: default; font-weight: 700; }
.p_c { cursor: default; }

/* ── FOOTER ── */
.footer {
    padding: 18px 0;
    text-align: center;
    border-top: 2px solid var(--gob-wine);
    margin-top: 14px;
    background: var(--gob-surface);
}
.footer p { margin: 5px 0; color: var(--gob-txt-dim); font-size: 12px; }
.footer a { color: var(--gob-txt-dim); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--gob-wine); }

.txtguanggao2 { padding: 9px; background: var(--gob-surface); border-radius: var(--r); border: 1px solid var(--gob-border); box-shadow: var(--gob-shadow-sm); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px 4px; }
.txtguanggao2 a { color: var(--gob-txt-muted); text-decoration: none; transition: var(--ease); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--gob-wine); }
.pd5 { padding: 2px 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .header { padding: 7px 0; }
    .brand-row { gap: 10px; }
    .brand-name { font-size: 20px; }
    .domain-pill { padding: 4px 10px; gap: 6px; }
    .domain-tag { font-size: 9px; }
    .domain-text { font-size: 15px; }
    .content { padding: 5px 0; }

    .navline .zone-tag,
    .nav-row .nav-label { width: 15%; min-width: 0; font-size: 10px; padding: 7px 3px; line-height: 1.3; }
    .navline .zone-links,
    .nav-row .nav-links { width: 85%; font-size: 12px; gap: 4px; padding: 6px 5px; }
    .navline .zone-links a,
    .nav-row .nav-links a { padding: 4px 2px; font-size: 12px; width: calc((100% - 12px) / 4); flex-shrink: 0; flex-grow: 0; }

    .thumbnail2-group { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .video-container { height: 56.25vw; max-height: 400px; margin-bottom: 10px; }
    .mhlleset { margin-bottom: 10px; }
    .mhlleset-heading { margin-bottom: 8px; padding-bottom: 6px; }
    .mhlleset-title { font-size: 15px; }

    .seach { padding: 8px; }
    .seach form { gap: 5px; }
    .seach input[type="text"] { min-width: 100px; padding: 8px 12px; font-size: 13px; }
    .seach button { padding: 8px 12px; font-size: 12px; }

    .grid-container { padding: 7px; gap: 5px; }
    .grid-item { padding: 3px 10px; font-size: 12px; }

    .download { padding: 10px 8px; margin: 10px 0; gap: 7px; }
    .down_btn { padding: 8px 14px; font-size: 12px; }

    .share-section { padding: 9px; margin: 10px 0; gap: 7px; }
    .share-url-display { padding: 7px 10px; gap: 6px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }

    .page_info_div { padding: 12px 0; gap: 4px; }
    .a_page_info,.page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
    .footer { padding: 13px 0; margin-top: 10px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .navline .zone-links a,
    .nav-row .nav-links a { font-size: 14px; }
}

@media (max-width: 480px) {
    .header { padding: 6px 0; }
    .brand-name { font-size: 17px; }
    .domain-pill { padding: 3px 8px; gap: 5px; }
    .domain-tag { font-size: 9px; }
    .domain-text { font-size: 13px; }

    .navline .zone-tag,
    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 6px 2px; }
    .navline .zone-links,
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 5px 4px; }
    .navline .zone-links a,
    .nav-row .nav-links a { padding: 3px 1px; font-size: 12px; width: calc((100% - 9px) / 4); }

    .thumbnail2-group { grid-template-columns: repeat(2,1fr); gap: 7px; }
    .video-container { height: 56.25vw; max-height: 300px; }
    .video-info h5 { font-size: 11px; }
    .mhlleset-title { font-size: 14px; }

    .seach input[type="text"] { min-width: 80px; padding: 7px 10px; font-size: 12px; }
    .seach button { padding: 7px 10px; font-size: 11px; }

    .download { padding: 8px 4px; gap: 4px; }
    .down_btn { padding: 7px 10px; font-size: 11px; }

    .share-section { padding: 7px; margin: 8px 0; gap: 5px; }
    .share-url-display { padding: 6px 8px; gap: 4px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 9px; }
    .share-copy-btn { padding: 7px 9px; font-size: 10px; }
}

/* ── VISIBILITY ── */
.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; } }

img[data-original] { background: var(--gob-bg-2); }
.clearfix::after { content:""; display:table; clear:both; }
