@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --bg-color: #1c223d;
    --container-bg: #354269;
    --table-bg: #B7C1E6;
    --table-bg-hover: #c8d1ed;
    --text-light: #ffffff;
    --text-dark: #121629;
    --accent-color: #a0ffa0;
    --border-color: rgba(255, 255, 255, 0.1);
    --table-border: #a2add6;
    --link-color: #2b4c7e;
    --link-hover: #1a365d;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Noto Sans', 'Nunito Sans', sans-serif;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

header {
    background-color: rgba(28, 34, 61, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

header ul {
    display: inline-flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 20px;
}

header li {
    display: inline-block;
    text-align: center;
}

header a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

header a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

header a img {
    vertical-align: middle;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

header a:hover img {
    transform: scale(1.05);
}

header::-webkit-scrollbar {
    height: 6px;
}

header::-webkit-scrollbar-thumb {
    background: #5a6b9c;
    border-radius: 10px;
}

header::-webkit-scrollbar-track {
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    background-color: var(--container-bg);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.stats-text {
    display: block;
    font-size: 0.95rem;
    color: #ffeb3b;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--table-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    table-layout: auto;
}

th,
td {
    padding: 16px;
    border-bottom: 1px solid var(--table-border);
    font-size: 0.95rem;
    color: var(--text-dark);
    vertical-align: middle;
}

th {
    background-color: var(--container-bg);
    color: var(--text-light);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    border-bottom: none;
}

@media screen and (min-width: 801px) {
    tr.reviewer-row {
        transition: background-color 0.2s ease;
        border-bottom: 2px solid var(--border-color);
    }

    tr.reviewer-row:last-child {
        border-bottom: none;
    }

    tr.reviewer-row td {
        transition: background-color 0.2s ease;
    }

    tr.reviewer-row:hover td {
        background-color: var(--table-bg-hover);
    }
}

.channel-avatar {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.flag {
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

a.person-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--link-color);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    gap: 6px;
}

a.person-link:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

a.person-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

a.person-link:hover svg {
    transform: translateX(3px);
}

td[data-label="Channel"] {
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}

.follower-count {
    display: block;
    font-size: 0.85rem;
    color: #3f4c6b;
    font-weight: 600;
    margin-top: 4px;
}

td[data-label="Reviewer Analysis"] {
    text-align: left;
}

td[data-label="Status"] {
    text-align: center;
    font-weight: 600;
    color: #334;
    white-space: nowrap;
}

@media screen and (max-width: 800px) {
    .container {
        margin: 20px;
        padding: 20px;
        border-radius: 12px;
        background-color: transparent;
        box-shadow: none;
    }

    h1 {
        border-bottom-color: rgba(255, 255, 255, 0.2);
        padding-left: 10px;
        color: var(--text-light);
    }

    table thead {
        display: none;
    }

    table,
    .table-wrapper,
    tbody {
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        display: block;
    }

    tr.reviewer-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 25px;
        background-color: var(--table-bg);
        border-radius: 14px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        border-bottom: none;
        padding: 0;
    }

    table tr:last-child {
        border-bottom: none;
    }

    table td {
        display: flex;
        flex-direction: column;
        text-align: left !important;
        padding: 10px 16px !important;
        border-bottom: none;
        position: relative;
        white-space: normal;
        min-height: auto;
        gap: 4px;
    }

    table td:last-child {
        border-bottom: none;
    }

    table td::before {
        content: attr(data-label);
        position: static;
        width: 100%;
        font-weight: 700;
        text-align: left;
        color: var(--container-bg);
        font-size: 0.85rem;
        text-transform: uppercase;
        margin-bottom: 4px;
        opacity: 0.8;
    }

    td[rowspan] {
        display: flex;
    }

    td[data-label="Channel"] {
        background-color: rgba(255, 255, 255, 0.4);
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    td[data-label="Reviewer Analysis"] {
        background-color: rgba(255, 255, 255, 0.15);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    td[data-label="Reviewer Analysis"]::before {
        content: "REVIEWER\A ANALYSIS";
        white-space: pre-wrap;
        flex-shrink: 0;
        width: auto;
        margin-bottom: 0;
        margin-right: 10px;
    }

    td[data-label="Reviewer Analysis"]>div {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    td[data-label="Status"] {
        white-space: normal !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    td[data-label="Status"]::before {
        flex-shrink: 0;
        width: auto;
        margin-bottom: 0;
        margin-right: 10px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 10px;
    }

    header ul {
        gap: 15px;
    }

    .container {
        margin: 10px;
        padding: 10px;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    table td {
        padding: 8px 16px !important;
        text-align: left !important;
    }

    a.person-link {
        white-space: nowrap;
        height: auto;
        text-align: left;
        padding: 6px 10px;
        width: auto;
        display: inline-flex;
        justify-content: flex-start;
    }

    a.person-link svg {
        flex-shrink: 0;
    }
}

.search-container {
    margin-bottom: 25px;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    color: var(--text-dark);
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#searchInput::placeholder {
    color: #8c98b9;
    font-style: italic;
}

#searchInput:focus {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(160, 255, 160, 0.15);
}

@media screen and (max-width: 800px) {
    #searchInput {
        max-width: 100%;
    }
}