        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.7;
            color: #333;
            background-color: #f5f2eb;
            background-image: linear-gradient(to bottom, #f5f2eb 0%, #e8e4d9 100%);
            padding-top: 90px;
        }
        a {
            color: #8b0000;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        a:hover {
            color: #5a0000;
            text-decoration: underline;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .section-padding {
            padding: 60px 0;
        }
        .text-center { text-align: center; }
        .text-bold { font-weight: 700; }
        .highlight {
            background-color: #fffacd;
            padding: 0 5px;
            border-radius: 3px;
        }
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(20, 20, 20, 0.98);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            padding: 15px 0;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .my-logo {
            font-family: 'Times New Roman', serif;
            font-size: 2.2rem;
            font-weight: bold;
            color: #c59d5f;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 1px 1px 2px #000;
        }
        .my-logo:hover {
            color: #d4af37;
            text-decoration: none;
        }
        .main-nav {
            display: flex;
        }
        .nav-list {
            display: flex;
            list-style: none;
            gap: 25px;
        }
        .nav-list a {
            color: #ddd;
            font-weight: 500;
            padding: 8px 5px;
            border-bottom: 2px solid transparent;
        }
        .nav-list a:hover, .nav-list a.active {
            color: #c59d5f;
            border-bottom-color: #c59d5f;
            text-decoration: none;
        }
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
        }
        .hamburger span {
            width: 25px;
            height: 3px;
            background-color: #c59d5f;
            border-radius: 2px;
            transition: 0.3s;
        }
        .breadcrumb {
            padding: 15px 0;
            background-color: #e8e4d9;
            border-bottom: 1px solid #ccc;
            margin-bottom: 30px;
        }
        .breadcrumb .container {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
        }
        .breadcrumb a {
            color: #666;
        }
        .breadcrumb i {
            margin: 0 10px;
            color: #999;
            font-size: 0.8rem;
        }
        .hero {
            background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
            color: #f0f0f0;
            padding: 80px 0;
            border-radius: 8px;
            margin-bottom: 40px;
        }
        .hero h1 {
            font-size: 3.2rem;
            margin-bottom: 20px;
            color: #f0f0f0;
            text-shadow: 2px 2px 5px #000;
        }
        .hero p {
            font-size: 1.3rem;
            max-width: 800px;
            margin: 0 auto 25px;
            color: #ddd;
        }
        .search-section {
            background-color: #fff;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            margin-bottom: 40px;
            border-left: 5px solid #8b0000;
        }
        .search-form {
            display: flex;
            max-width: 600px;
            margin: 0 auto;
        }
        .search-input {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #c59d5f;
            border-right: none;
            border-radius: 8px 0 0 8px;
            font-size: 1rem;
        }
        .search-btn {
            background-color: #8b0000;
            color: white;
            border: none;
            padding: 0 25px;
            border-radius: 0 8px 8px 0;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        .search-btn:hover {
            background-color: #5a0000;
        }
        .main-content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            margin-bottom: 60px;
        }
        @media (max-width: 992px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }
        .character-list {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 40px;
        }
        .sidebar {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            padding: 30px;
            align-self: start;
            position: sticky;
            top: 110px;
        }
        h1, h2, h3, h4 {
            color: #2c2c2c;
            margin-top: 1.8em;
            margin-bottom: 0.7em;
            line-height: 1.3;
            font-weight: 700;
        }
        h1 { font-size: 2.8rem; border-bottom: 3px double #c59d5f; padding-bottom: 15px; }
        h2 { font-size: 2.2rem; color: #8b0000; border-left: 5px solid #c59d5f; padding-left: 15px; }
        h3 { font-size: 1.8rem; color: #5a3921; }
        h4 { font-size: 1.4rem; color: #7a5c3c; }
        p {
            margin-bottom: 1.5em;
            font-size: 1.1rem;
            text-align: justify;
            hyphens: auto;
        }
        .lead {
            font-size: 1.3rem;
            color: #555;
            font-weight: 300;
            margin-bottom: 2em;
        }
        .character-card {
            background: #f9f7f2;
            border: 1px solid #e0d6c2;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .character-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
        }
        .house-badge {
            display: inline-block;
            background: #8b0000;
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-right: 10px;
            margin-bottom: 10px;
        }
        .house-stark { background-color: #2c4f7a; }
        .house-lannister { background-color: #9e0b0f; }
        .house-targaryen { background-color: #333333; }
        .house-baratheon { background-color: #ffcc00; color: #333; }
        .house-tyrell { background-color: #2d8a2d; }
        .rating-section, .comments-section {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            padding: 30px;
            margin-top: 40px;
        }
        .star-rating {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
        }
        .star-rating i {
            font-size: 2rem;
            color: #ddd;
            cursor: pointer;
            transition: color 0.2s;
        }
        .star-rating i:hover,
        .star-rating i.active {
            color: #ffcc00;
        }
        .form-group {
            margin-bottom: 25px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #444;
        }
        .form-control {
            width: 100%;
            padding: 14px;
            border: 2px solid #ccc;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        .form-control:focus {
            border-color: #c59d5f;
            outline: none;
        }
        .btn-submit {
            background-color: #2c4f7a;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background-color 0.3s;
            width: 100%;
        }
        .btn-submit:hover {
            background-color: #1e3550;
        }
        .comment {
            border-bottom: 1px solid #eee;
            padding: 20px 0;
        }
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: #666;
        }
        .comment-author {
            font-weight: bold;
            color: #8b0000;
        }
        .widget-title {
            font-size: 1.4rem;
            color: #8b0000;
            border-bottom: 2px solid #c59d5f;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        .widget-list {
            list-style: none;
        }
        .widget-list li {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px dashed #e0d6c2;
        }
        .widget-list a:hover {
            color: #5a0000;
            padding-left: 5px;
            transition: padding-left 0.3s;
        }
        .update-info {
            background-color: #f0f7ff;
            padding: 15px;
            border-radius: 8px;
            margin-top: 30px;
            border-left: 4px solid #2c4f7a;
        }
        .site-footer {
            background-color: #1a1a1a;
            color: #bbb;
            padding: 60px 0 30px;
        }
        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-widget h4 {
            color: #c59d5f;
            font-size: 1.3rem;
            margin-bottom: 25px;
        }
        friend-link {
            display: block;
            background-color: #2c2c2c;
            padding: 20px;
            border-radius: 8px;
            margin: 15px 0;
            border-left: 4px solid #c59d5f;
        }
        friend-link a {
            color: #ddd;
            font-weight: bold;
        }
        friend-link a:hover {
            color: #c59d5f;
        }
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid #444;
            color: #888;
            font-size: 0.95rem;
        }
        @media (max-width: 768px) {
            body { padding-top: 80px; }
            .hero h1 { font-size: 2.5rem; }
            .hero p { font-size: 1.1rem; }
            .hamburger { display: flex; }
            .main-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background-color: rgba(20, 20, 20, 0.98); padding: 20px; }
            .main-nav.active { display: block; }
            .nav-list { flex-direction: column; gap: 15px; }
            .header-container { flex-wrap: wrap; }
            h1 { font-size: 2.3rem; }
            h2 { font-size: 1.9rem; }
            .character-list, .sidebar { padding: 25px; }
            .search-form { flex-direction: column; }
            .search-input { border-radius: 8px; border-right: 2px solid #c59d5f; margin-bottom: 10px; }
            .search-btn { border-radius: 8px; padding: 15px; }
        }
