/* ============================================================
   StreamEast Theme Stylesheet (streameastas.cx replica)
============================================================ */

.streameast-site,
.streameast-site * {
    box-sizing: border-box;
}

.streameast-site {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #15151e;
    color: #ffffff;
    line-height: 1.4;
    min-height: 100vh;
    font-size: 14px;
    letter-spacing: -0.01em;
    padding: 0 !important;
    margin: 0 !important;
}

.livetv-shortcode-container {
    padding: 0 !important;
    margin: 0 !important;
}

.streameast-site a {
    text-decoration: none;
    color: inherit;
}

.streameast-site .container,
.streameast-main > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 !important;
}

/* ================= Header ================= */
.streameast-header {
    background: #dc2626;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.streameast-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36%;
    height: 100%;
    background: #9f0712cc;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    pointer-events: none;
}

.streameast-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Logo */
.streameast-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo-stream {
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-east {
    background: #ffffff;
    color: #dc2626;
    padding: 2px 28px 2px 6px;
    font-weight: 900;
    clip-path: polygon(0 0, 100% 0, 72% 100%, 0% 100%);
    margin-left: 4px;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav */
.streameast-nav {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.streameast-nav::-webkit-scrollbar {
    display: none;
}

.streameast-nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.streameast-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.25s ease;
}

.streameast-nav-link:hover::after,
.streameast-nav-link.active::after {
    width: 100%;
}

.streameast-nav-link:hover,
.streameast-nav-link.active {
    color: #ffffff;
    transform: translateY(-1px);
}

/* ================= Main Content Container ================= */
.streameast-main {
    padding: 0 !important;
    background: #15151e;
    min-height: calc(100vh - 180px);
}

.streameast-page-header {
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 10px;
    padding: 24px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.streameast-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444, transparent);
}

.streameast-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.streameast-page-subtitle {
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

/* Search Box */
.streameast-search-bar {
    margin: 18px 0 24px;
    display: flex;
    gap: 12px;
}

.streameast-search-bar input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.streameast-search-bar input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Section Header */
.streameast-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #dc2626;
}

.streameast-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Events List & Cards */
.streameast-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.streameast-event-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.streameast-event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dc2626;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.streameast-event-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 3px;
    background: #dc2626;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.streameast-event-card:hover::before { transform: scaleY(1); }
.streameast-event-card:hover::after  { transform: scaleX(1); }

.streameast-event-card:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.12);
    transform: translateX(3px);
}

.streameast-event-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
}

.streameast-league-icon {
    width: 48px;
    height: 48px;
    background: #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid #e8e8e8;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.streameast-event-card:hover .streameast-league-icon {
    transform: scale(1.06);
}

.streameast-event-details {
    flex: 1;
    min-width: 0;
}

.streameast-event-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.streameast-event-datetime {
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.streameast-event-league {
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.status-live {
    background: #dc2626;
    color: #ffffff;
}

.status-upcoming {
    background: #000000;
    color: #ffffff;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin-right: 4px;
    animation: streameastPulse 1.6s infinite;
}

@keyframes streameastPulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* ================= Single Event Hero Section ================= */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 10px;
    padding: 36px 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #dc2626, #ef4444, transparent);
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-datetime {
    font-size: 15px;
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-subtitle {
    font-size: 16px;
    color: #555555;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-venue {
    font-size: 14px;
    color: #777777;
    font-style: italic;
}

/* Event Detail Card */
.event-detail-card {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.event-detail-card h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #dc2626;
    margin: 0 0 1.1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.6rem;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem 1.5rem;
}

.event-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.event-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* Discord CTA */
.discord-btn {
    border: 2px solid rgba(88, 101, 242, 0.3);
    padding: 0.85rem 1.2rem;
    background: #5865f2;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.25);
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

/* ================= Stream Links Table ================= */
.stream-links-section {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.stream-links-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #dc2626;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: -0.01em;
}

.stream-links-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.stream-links-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.stream-links-table thead {
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
}

.stream-links-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-link-row {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stream-link-row:hover {
    background: #f8fafc;
}

.stream-links-table td {
    padding: 14px 16px;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

.streamer-name {
    font-weight: 700;
    color: #0f172a;
}

.quality-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
}

.quality-fhd {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.quality-hd {
    background: rgba(76, 175, 80, 0.18);
    color: #1b5e20;
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.adblock-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    display: inline-block;
}

.adblock-yes {
    background: rgba(76, 175, 80, 0.18);
    color: #1b5e20;
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.watch-btn {
    display: inline-block;
    padding: 8px 22px;
    background: #dc2626;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    cursor: pointer;
    border: none;
}

.watch-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.acestream-tag-btn {
    background: #ca8a04;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
}

.acestream-tag-btn:hover {
    background: #a16207;
}

/* ================= StreamEast Video Player Page ================= */
.video-player {
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.8rem;
    border: 5px solid #dc2626;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000000;
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Stream Server Switcher */
.stream-servers {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.8rem;
}

.servers-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.servers-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.server-btn {
    padding: 0.6rem 1.4rem;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
}

.server-btn:hover,
.server-btn.active {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

.btn-back-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.btn-back-links:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Footer */
.streameast-footer {
    background: linear-gradient(135deg, #111118 0%, #08080c 100%);
    border-top: 2px solid #dc2626;
    padding: 2.5rem 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.streameast-footer p {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.streameast-footer a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.streameast-footer a:hover {
    color: #ef4444;
}

/* ================= Responsive Styles (Desktop, Tablet, Mobile) ================= */

@media screen and (max-width: 992px) {
    .streameast-site .container,
    .streameast-main > .container {
        padding: 0 !important;
    }
    .event-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .streameast-site {
        overflow-x: hidden;
        padding: 0 !important;
    }

    .streameast-main {
        padding: 0 !important;
        overflow-x: hidden;
    }

    .streameast-site .container,
    .streameast-main > .container {
        padding: 0 !important;
    }

    /* Header & Nav */
    .streameast-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }

    .streameast-nav {
        width: 100%;
        gap: 1rem;
    }

    /* Hero / Header Blocks */
    .hero-section {
        padding: 20px 16px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .hero-datetime {
        font-size: 13px;
    }

    .streameast-page-title {
        font-size: 20px;
    }

    /* Search Bar */
    .streameast-search-bar {
        margin: 12px 0 18px;
    }

    .streameast-search-bar input {
        padding: 11px 14px;
    }

    /* Schedule Section & Events List */
    .streameast-section-header {
        margin-bottom: 0.8rem;
        padding-bottom: 0.4rem;
    }

    .streameast-section-title {
        font-size: 1.15rem;
    }

    .streameast-event-card:hover {
        transform: none; /* Avoid horizontal viewport shift on touch devices */
    }

    .streameast-event-info {
        gap: 12px;
        padding: 11px 12px;
    }

    .streameast-league-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
        border-radius: 8px;
    }

    .streameast-event-title {
        font-size: 14px;
        margin-bottom: 3px;
        word-break: break-word;
    }

    .streameast-event-datetime {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .streameast-event-league {
        font-size: 11px;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Event Detail Card */
    .event-detail-card {
        padding: 14px 16px;
        margin: 1rem 0;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Stream Links Section & Table */
    .stream-links-section {
        padding: 16px 12px;
        margin-top: 18px;
    }

    .stream-links-title {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }

    .stream-links-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Hide Ads (col 5) & AdBlock (col 6) on tablet */
    .stream-links-table th:nth-child(5),
    .stream-links-table td:nth-child(5),
    .stream-links-table th:nth-child(6),
    .stream-links-table td:nth-child(6) {
        display: none;
    }

    .stream-links-table th,
    .stream-links-table td {
        padding: 10px 8px;
        font-size: 12.5px;
    }

    /* Video Player Page */
    .video-player {
        border-width: 3px;
        border-radius: 8px;
        margin-bottom: 1.4rem;
    }

    .player-topbar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stream-servers {
        padding: 14px 12px;
        margin-bottom: 1.4rem;
    }

    .servers-title {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .servers-list {
        gap: 6px;
    }

    .server-btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

@media screen and (max-width: 640px) {
    /* Hide Bitrate (col 7) & Rating (col 8) on mobile screens */
    .stream-links-table th:nth-child(7),
    .stream-links-table td:nth-child(7),
    .stream-links-table th:nth-child(8),
    .stream-links-table td:nth-child(8) {
        display: none;
    }

    .stream-links-table th,
    .stream-links-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .watch-btn {
        padding: 6px 12px;
        font-size: 11.5px;
    }

    .server-btn {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
        padding: 8px 6px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .streameast-site .container,
    .streameast-main > .container {
        padding: 0 !important;
    }

    .streameast-main {
        padding: 0 !important;
    }

    .logo-stream, .logo-east {
        font-size: 1.35rem;
    }

    .hero-section {
        padding: 16px 12px;
    }

    .hero-title {
        font-size: 18px;
    }

    .streameast-search-bar input {
        padding: 9px 12px;
        font-size: 14.5px;
    }

    .streameast-section-title {
        font-size: 1rem;
    }

    .streameast-event-info {
        gap: 9px;
        padding: 9px 10px;
    }

    .streameast-league-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 6px;
    }

    .streameast-event-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .streameast-event-datetime {
        font-size: 11.5px;
    }

    .streameast-event-league {
        font-size: 10.5px;
    }

    .event-status {
        padding: 1px 6px;
        font-size: 10px;
    }

    .btn-back-links {
        padding: 6px 10px;
        font-size: 11.5px;
    }

    /* On narrow mobile phones, hide Channel (col 2) so Streamer, Language, Quality, Watch fit seamlessly */
    .stream-links-table th:nth-child(2),
    .stream-links-table td:nth-child(2) {
        display: none;
    }

    .stream-links-table th,
    .stream-links-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .quality-badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    .watch-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .video-player {
        border-width: 2px;
    }
}

@media screen and (max-width: 360px) {
    .streameast-site .container,
    .streameast-main > .container {
        padding: 0 !important;
    }

    .server-btn {
        flex: 1 1 100%;
    }
}
